-
Notifications
You must be signed in to change notification settings - Fork 12k
[appShell] ERROR { Error: Uncaught (in promise): ReferenceError: System is not defined #9985
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
Comments
Exactly same error at this repo / branch: Steps:
|
Disclaimer: not an Angular dev here Had to help a colleague figure this out and got it working by referencing this blog post as well as this thread. The issue is an underlying issue and not really anything to do with The fix seemed to be a combination of using
as well importing Hope that steers you in some direction to resolve it for yourself as well. |
Please use as a temporal workaround
|
Tried this. Doesn't seem to work for us.
and server.ts
|
Thanks for reporting this issue. This issue is now obsolete as Angular CLI version 1 is no longer under LTS. Please update to the most recent Angular CLI version. If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
changed .anngular-cli.json to have a second app that should be rendered during build time and precompile a route in the index.html to be used as app shell.
The problem is that in my main component
app.component.ts
i have this:What I can tell is that if I remove the code that deals with observables then the build works and the index.html contains the precompiled html.
Observed behavior
Desired behavior
I wonder why I am not able to build it when using observables, its also interesting that can build ok either one of the two apps when build by itself, with --app 1 for example or --app 0 --skip-app-shell true.
Mention any other details that might be useful (optional)
I followed this tutorial when implementing the app shell stuff. https://blog.angular-university.io/angular-app-shell/
The text was updated successfully, but these errors were encountered: