You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My app crashes as soon as I add the following line of code:
export class HomeComponent implements OnInit {
items: Array<DataItem>;
_player: TNSPlayer;
constructor(private _itemService: DataService) {
console.log('ok');
this._player = new TNSPlayer(); // <— THIS line causes the app to crash
Console:
Successfully synced application org.nativescript.test4 on device 5e4625ba539da6580b192c6f90fde0020f9491ae.
CONSOLE LOG file: node_modules/@angular/core/fesm5/core.js:25638:0: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
CONSOLE ERROR file: node_modules/@angular/core/fesm5/core.js:4002:0: ERROR Error: Uncaught (in promise): Error: Could not find module './3.js'. Computed path '/var/mobile/Containers/Data/Application/65D2C8F8-64AF-4516-A26F-003547D36ECF/Library/Application Support/LiveSync/app/3.js'. (evaluating 'require("./" + ({}[chunkId]||chunkId) + ".js")')
require([native code])
at requireEnsure(file: src/webpack/bootstrap:769:0)
at file: src/webpack/bootstrap:146:0
at loadChildren(file: src/app/app-routing.module.ts:16:28)
at file: node_modules/@angular/router/fesm5/router.js:3608:0
at file: node_modules/@angular/router/fesm5/router.js:3593:0
at file: node_modules/@angular/router/fesm5/router.js:2595:0
at file: node_modules/rxjs/_esm5/internal/operators/mergeMap.js:59:0
at file: node_modules/rxjs/_esm5/internal/operators/mergeMap.js:49:0
at file: node_modules/rxjs/_esm5/internal/Subscriber.js:53:0
at file: node_modules/rxjs/_esm5/internal/util/subscribeToArray.js:5:0
at file: node_modules/rxjs/_esm5/internal/Observable.js:43:0
at file: node_modules/rxjs/_esm5/internal/Observable.js:29:0
at file: node_modules/rxjs/_esm5/internal/Observable.js:24:0
at file: node_modules/rxjs/_esm5/internal/Observable.js:24:0
at file: node_modules/rxjs/_esm5/internal/Observable.js:24:0
at file: node_modules/rxjs/_esm5/internal/operators/mergeMap.js:72:46
at file: node_modules/rxjs/_esm5/internal/operators/mergeMap.js:66:0
at file:///app/vendor.<\M-b\M^@\M-&>
tns —version: 6.7.8
Is the demo code working on the latest TNS environment? Thanks
The text was updated successfully, but these errors were encountered:
Hi,
My app crashes as soon as I add the following line of code:
Console:
tns —version
: 6.7.8Is the demo code working on the latest TNS environment? Thanks
The text was updated successfully, but these errors were encountered: