-
Notifications
You must be signed in to change notification settings - Fork 12k
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
No any error output when used ng serve --aot
in project which has errors
#2667
Comments
Does it repeatedly rebuild as well, is that it? |
No, it's just keep in this state permanently. No any rebuild. |
I faced this as well. ng serve --aot simply hangs at 20%. ng build --aot showed me the problem.
|
same here
|
Same here with beta.19-3. Both outputs from For
P.S.Exact
|
I have upgraded my test repo to beta.19-3 if this helps with testing: |
same here |
Same problem here. Not with the AppModule but with another module. |
Same here. |
Same problem here 10% building modules 2/2 modules 0 activeError: AppModule is not an NgModule at AotPlugin.getNgModuleMetadata (C:\Users\Irvin\WebstormProjects\nexus4_angular_cli\node_modules\@ngtools\webpack\src\plugin.js:247:19) at AotPlugin._processNgModule (C:\Users\Irvin\WebstormProjects\nexus4_angular_cli\node_modules\@ngtools\webpack\src\plugin.js:230:42) at C:\Users\Irvin\WebstormProjects\nexus4_angular_cli\node_modules\@ngtools\webpack\src\plugin.js:206:23 at process._tickCallback (internal/process/next_tick.js:103:7) AppModule is not an NgModule Error: AppModule is not an NgModule at AotPlugin.getNgModuleMetadata (C:\Users\Irvin\WebstormProjects\nexus4_angular_cli\node_modules\@ngtools\webpack\src\plugin.js:247:19) at AotPlugin._processNgModule (C:\Users\Irvin\WebstormProjects\nexus4_angular_cli\node_modules\@ngtools\webpack\src\plugin.js:230:42) at C:\Users\Irvin\WebstormProjects\nexus4_angular_cli\node_modules\@ngtools\webpack\src\plugin.js:206:23 at process._tickCallback (internal/process/next_tick.js:103:7) |
+1 Have the same issue with |
+1 what @unsafecode said, same problem with @ngtools/webpack and a lazy route. |
same here |
Same here |
angular-cli: 1.0.0-beta.19-3
In app.routing.ts:
|
+1
|
same here
|
Still in beta.20-4 |
Same problem with 1.0.0-beta.21 |
same thing here, seems like caused by this issue
|
I have this problem with angular-cli: 1.0.0-beta.22-1 EDIT: From comments on #3157 |
My ng serve hanging went away after I updated /src/tsconfig.json to the one generated by beta.22 |
the way i deal with it is I run |
+1 20% building modules 84/84 modules 0 activewebpack: wait until bundle finished: |
From what I've seen here and on #3157 and #3426 Most problems seem to be caused by people jumping ahead to a newer version of Angular or TypeScript. Double-check package.json
You should use After you've double-checked your package.json, If that doesn't fix it, some people have said changes they made to tsconfig.json caused the problem. So review that diff as well. Otherwise, review how your module is exported. In my project, one module was Remove |
getting below error while running ng build command. No errors |
getting same as meghadureja on ng build or ng serve happens on windows and mac with prompts in administrator mode. node: 6.9.4 |
Thanks, just seen that after I posted. Thanks for redirect. |
Closing this as fixed. |
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. |
No any error output when used
ng serve --aot
in project which has errors(compilation fails).OS?
Linux(Ubuntu 16.04)
Versions.
angular-cli: local (v1.0.0-beta.17, branch: master)
node: 6.7.0
os: linux x64
Repro steps.
The log given by the failure.
I getting this log with "infinite building":
ng serve --aot Could not start watchman; falling back to NodeWatcher for file system events. Visit http://ember-cli.com/user-guide/#watchman for more info. ** NG Live Development Server is running on http://localhost:4200. ** 23% building modules 109/109 modules 0 active
But nothing of errors.
Mention any other details that might be useful.
With normal
ng-serve
project successfully builds but has intentional error which appears in browser console - not imported "angular2-text-mask" package(but it's functionality used in template).The text was updated successfully, but these errors were encountered: