-
Notifications
You must be signed in to change notification settings - Fork 12k
Unexpected token export in ng run [project-name]:app-shell #15182
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
Hi, the problem seems to be that some of your dependencies don't have a UMD bundles. Example: This is related to the following issue: #13181 That being said, we should display the module that is causing the problem so that users can track and action the issue quicker. |
@alan-agius4 Thank u for quick response. But why |
The issue is that code is executed when running
|
@alan-agius4 Thank u. The problem was with |
Just had this issue as well. It would really be useful to get some stacktrace of the error, which I figured I can get by going to the dist folder where the |
We are trying to implement the app-shell in our product, and when we tried to build the app, it generated the same error |
@DanielYKPan Try running |
Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. 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. |
ng run [project-name]: app-shell
Command (mark with an
x
)Description
This is not duplicate of #8848 .
When I run
ng run [project-name]:app-shell
I get
Unexpected token export
errorCli even does noes not inform in which file is the problem. So have no clue where to debug.
Tried --verbose but is not supported with this command.
I get no erorrs with
ng-build --prod and ng run project-name:build
.Configured app shell with steps;
ng run [project-name]: app-shell
builds and exports two builds in dist (dist/project-name and dist/project-name-server) but I do not see app-shell in dist/project-name/index.htmlThanks in advance
🔬 Minimal Reproduction
https://github.com/vugar005/app-shell-unexpected-token
🔥 Exception or Error
Unexpected token export
without additional details.🌍 Your Environment
@angular-devkit/architect 0.801.2
@angular-devkit/build-angular 0.801.2
@angular-devkit/build-optimizer 0.801.2
@angular-devkit/build-webpack 0.801.2
@angular-devkit/core 8.1.2
@angular-devkit/schematics 8.1.2
@angular/cdk 8.1.1
@angular/cli 8.1.2
@angular/material 8.1.1
@angular/material-moment-adapter 8.1.1
@ngtools/webpack 8.1.2
@schematics/angular 8.1.2
@schematics/update 0.801.2
rxjs 6.4.0
typescript 3.4.5
webpack 4.35.2
Also tried with
"@angular/cli": "~8.2.0-rc.0.",
"@angular/compiler-cli": "~8.2.0-next.1",
but same problem.
The text was updated successfully, but these errors were encountered: