Skip to content

fix(ng-android): runtime compiler not loaded error with aot #97

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

Merged
merged 1 commit into from
Sep 16, 2019

Conversation

manoldonev
Copy link
Contributor

@manoldonev manoldonev commented Sep 16, 2019

Fixes Runtime is not loaded error in Angular Android templates with --env.aot option specified:

Restarting application on device emulator-5562...
Successfully synced application org.nativescript.TestApp on device emulator-5562.
ActivityManager: Start proc 3732:org.nativescript.TestApp/u0a55 for activity org.nativescript.TestApp/com.tns.NativeScriptActivity
JS: HMR: Hot Module Replacement Enabled. Waiting for signal.
JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
JS: firebase.init done
JS: ERROR Error: Uncaught (in promise): Error: Runtime compiler is not loaded
JS: Error: Runtime compiler is not loaded
JS:     at Compiler._throwError (file:///node_modules/@angular/core/fesm5/core.js:25788:0) [angular]
JS:     at MergeMapSubscriber.project (file:///node_modules/@angular/router/fesm5/router.js:3613:31) [angular]
JS:     at MergeMapSubscriber.push.../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._tryNext (file:///node_modules/rxjs/_esm5/internal/operators/mergeMap.js:61:0) [angular]
JS:     at MergeMapSubscriber.push.../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._next (file:///node_modules/rxjs/_esm5/internal/operators/mergeMap.js:51:0) [angular]
JS:     at MergeMapSubscriber.push.../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (file:///node_modules/rxjs/_esm5/internal/Subscriber.js:53:0) [angular]
JS:     at file:///node_modules/rxjs/_esm5/internal/util/subscribeToPromise.js:7:0 [angular]
JS:     at Object...

See https://angular.io/guide/deprecations#loadchildren-string-syntax
Related to: #93

@manoldonev manoldonev requested a review from dtopuzov September 16, 2019 08:52
@manoldonev manoldonev self-assigned this Sep 16, 2019
@cla-bot cla-bot bot added the cla: yes label Sep 16, 2019
@manoldonev manoldonev changed the base branch from master to release September 16, 2019 08:52
@manoldonev manoldonev merged commit 4ef8d68 into release Sep 16, 2019
@manoldonev manoldonev deleted the mdonev/ng-aot-compiler-not-loaded-fix branch September 16, 2019 10:11
dtopuzov pushed a commit that referenced this pull request Sep 16, 2019
* fix(ng-android): runtime compiler not loaded error with aot (#97)

* chore(release): publish

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

Successfully merging this pull request may close these issues.

2 participants