Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

[Webpack] CssProperty is not a constructor or android of undefined. #43

Open
tushar-1health opened this issue Jun 12, 2017 · 1 comment

Comments

@tushar-1health
Copy link
Contributor

Hello,

I am trying to build on webpacks. This is what I'm getting, sometimes the error contains CssProperty is not a constructor which belongs to opentok plugin or else android of undefined as show below:

ERROR:

An uncaught Exception occurred on "main" thread.
java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: 

Error calling module function 

Error calling module function 

TypeError: Cannot read property 'android' of undefined
File: "file:///data/data/com.patient/files/app/bundle.js, line: 34446, column: 25

StackTrace: 
	Frame: function:'', file:'file:///data/data/com.patient/files/app/bundle.js', line: 34446, column: 26
	Frame: function:'__webpack_require__', file:'file:///data/data/com.patient/files/app/vendor.js', line: 53, column: 30
	Frame: function:'', file:'file:///data/data/com.patient/files/app/bundle.js', line: 8640, column: 10
	Frame: function:'__webpack_require__', file:'file:///data/data/com.patient/files/app/vendor.js', line: 53, column: 30
	Frame: function:'', file:'file:///data/data/com.patient/files/app/bundle.js', line: 28095, column: 30
	Frame: function:'__webpack_require__', file:'file:///

Line: 34446

/***/ }),
/* 551 */
/* no static exports found */
/* all exports used */
/*!********************************************************!*\
  !*** ../~/nativescript-opentok/src/android/session.js ***!
  \********************************************************/
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var observable_1 = __webpack_require__(/*! tns-core-modules/data/observable */ 61);
var utils = __webpack_require__(/*! tns-core-modules/utils/utils */ 12);
var Session = com.opentok.android.Session;

Line 34446 is var Session = com.opentok.android.Session;

I hope this will help resolve the issue.

@tushar-1health
Copy link
Contributor Author

Well its not about the webpacks. This is what I found while using w/o webpack.

An uncaught Exception occurred on "main" thread.
java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: 

Error calling module function 

Error calling module function 

Error calling module function 

Error calling module function 

Error calling module function 

Error calling module function 

TypeError: view_1.CssProperty is not a constructor
File: "file:///data/data/com.patient/files/app/tns_modules/nativescript-opentok/src/android/publisher.js, line: 12, column: 18

StackTrace: 
	Frame: function:'', file:'file:///data/data/com.patient/files/app/tns_modules/nativescript-opentok/src/android/publisher.js', line: 12, column: 19
	Frame: function:'require', file:'', line: 1, column: 266
	Frame: function:'', file:'file:///data/data/com.patient/files/app/tns_modules/nativescript-opentok/opentok.js', line: 7, column: 10
	Frame: function:'require', file:'', line: 1, column: 266
	Frame: function:'', file:'file:///data/data/tech.ar

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant