-
Notifications
You must be signed in to change notification settings - Fork 12k
HMR error [plugin:vite:import-analysis] Failed to resolve import #29369
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
This issue seems to occur when updating a template in a component of a lazy-loaded route, followed by making changes in the TypeScript file of the importer, example The root cause appears to be angular-cli/packages/angular/build/src/builders/application/build-action.ts Lines 284 to 289 in 3861b88
|
I have a similar issue (the difference is the bundle generates rather than getting an error), after hmr reload, navigating to other lazy loaded routes stops working due to 404 error where it can't find modules files. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Any ideas ? Same issue. |
not a fix but I had to disable hmr to remove the issue with:
|
any idea how to resolve this? |
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. |
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
HMR is enabled on my project (--hmr). When I change some code on template or ts file getting some like that error. Here details.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: