Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo code crashes: Uncaught (in promise): Error: Could not find module './3.js' #173

Open
adams-family opened this issue Aug 23, 2020 · 0 comments

Comments

@adams-family
Copy link

Hi,

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

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

No branches or pull requests

1 participant