-
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
Error on ng serve rebuild with v1.5.0-beta.4 and --aot #7986
Comments
Still happening in 1.5.0-rc.0 with ng 5.0.0-rc.2. |
@cexbrayat is the error you get the same? Have you noticed any pattern to when the error happens? This seems related to the forked type checker. Something breaks in that separate process and it seems like type checking stops happening. |
Yes, I see the same one as Olivier, in the file I'm editing (PonyComponent):
But I also see another quite often:
Pretty much always reproducible in my case: edit a template, add anything, save. When it happens, the next save will trigger this error:
which is fatal (a edit/save will not retrigger the compilation). |
You can use this repository as well to help with the debug: https://github.com/ocombe/i18n-demo-no-cli |
I have same problem with ng 5.0.0 and angular-cli 1.5.0 (node 8.9.0).
|
That's not the same error since the message is different. Please open a new issue for this. |
Ok, done #8331 |
Getting the same error
|
Anyone fixed this issue ? (cannot determine the module for component angular 5) https://stackoverflow.com/questions/47119135/cannot-determine-the-module-for-component-angular-5 |
I am having the same issue as @jcjolley and I am also using components from the cli. including webpack. and can someone explain to me the massive webpack change for the new cli? `const fs = require('fs'); const { NoEmitOnErrorsPlugin, SourceMapDevToolPlugin, NamedModulesPlugin } = require('webpack'); const nodeModules = path.join(process.cwd(), 'node_modules'); module.exports = { |
Same error here as well
|
Same Error With
|
It turns out that the issue is with
which is part of the provider suggestion given in https://github.com/angular/material-prefix-updater |
I found a work around for ejected version. Just comment out the AotPlugin configuration in webpack config and add the path of the tsconfig for ngtools/webpack loader as follows:
|
The fix for me was switching from the AotPlugin to AngularCompilerPlugin as described here: |
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. |
Bug Report or Feature Request
When using
ng serve --aot
with 1.5.0-beta.4 and Angular 5.0.0-rc.1 it will sometimes print an error message in the shell after rebuilding, but the application still works and is refreshed in the browser. I don't have this error with JIT.Versions.
Repro steps.
edit src/app/app.component.ts template, save (it should work), edit again, save, you should see the error in your shell (if not, edit again and save again)
The log given by the failure.
Desired functionality.
It should not print an error message (especially since the app works fine and is recompiled successfully)
The text was updated successfully, but these errors were encountered: