-
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
ng serve --aot subsequent watches result in EOENT of ngFactory file #11380
Comments
After some further searching, I stumbled upon these two issues in the NativeScript trackers: NativeScript/nativescript-dev-webpack#574 And that's where it hit me. We still use a
Removing the require.context appears to work fine. I'm suggesting to close this issue then. |
i've got this issue and removing require.context calls doesn't help. removed webpack-hot-loader's require.context call even |
@nickbullock I just started running into this as well on aot builds. Did you find a solution? |
@kspearrin no, i didn't. In my case aot build compiles successfully for the first time and throw this error on recompilations. So we use jit for development and aot for production, but aot recompilations still doesn't work. |
@nickbullock I re-opened this issue here: #12260 |
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
When running
ng serve
with--aot
, subsequent outputs will break occasionally with the following, likely due tongFactory
files being regenerated and being accessed during that time frame.This may be connected to #11217 since the result is the same EOENT, however it seems that this is one is not connected to aot.
Area
Versions
Repro steps
The log given by the failure
Desired functionality
We're running ng serve with AOT due to a strict CSP even during development. Apart from these undeterministic, yet persistent errors, serving with AOT runs fine and is a breeze (thanks for all your work making this possible!)
Mention any other details that might be useful
This occurs in the isolated Angular frontend of our Rails/angular hybrid project management project OpenProject. Thus I believe the best way to reproduce is simply cloning the whole project and running the steps above. No dependencies on Ruby/Rails need to be installed to reproduce it.
The text was updated successfully, but these errors were encountered: