-
Notifications
You must be signed in to change notification settings - Fork 12k
Error: [vite] cannot find entry point module 'file://...'
on Windows with SSR
#29424
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
Error: [vite] cannot find entry point module 'file:///D:/<PROJECT_FOLDER>/.angular/vite-root/spa-near-me/@ng/component?c=src%2Fapp%2Fcomponents%2Fheader%2Fheader.component.ts%40HeaderComponent&t=1737401566323'
on Windows
similar problem for me... I think 'angular-calendar' is including the problematic import in my repo, never had a problem with it before. It works with latest cli (19.1.3), but not with latest angular (19.1.2). Downgrading angular to 19.1.1 fixes it... [vite] Pre-transform error: Failed to resolve import "angular-draggable-droppable" from ".angular/vite-root/devtest/main.js". Does the file exist? |
+1 |
The `virtualProjectRoot` is normalized, but `sourcePath` is not, leading to mismatched path slashes and related issues. Closes angular#29424
I created a new deafult app, only ( just html hello ) and when i ran ng serve got same error: using ng serve --no-hmr bypasses this error because I beleive the source of the issue is in the Hot Module Replacement (HMR) |
Error: [vite] cannot find entry point module 'file:///D:/<PROJECT_FOLDER>/.angular/vite-root/spa-near-me/@ng/component?c=src%2Fapp%2Fcomponents%2Fheader%2Fheader.component.ts%40HeaderComponent&t=1737401566323'
on WindowsError: [vite] cannot find entry point module 'file://...'
on Windows
Error: [vite] cannot find entry point module 'file://...'
on WindowsError: [vite] cannot find entry point module 'file://...'
on Windows with SSR
I have the same issue, but if I run this command ng s -o --no-hmr |
Not fixed for me. |
@quedicesebas please provide the output of |
Angular CLI: 19.1.4 Angular: 19.1.3 Package Version@angular-devkit/architect 0.1702.3 But correction. The error is not shown, but the app is not loading, showing |
@quedicesebas, that seems unrelated to this, we haven’t had similar reports. Please file a new issue with a minimal reproduction. Thanks. |
Maybe I have a different case. I need SSR only for prod build, but not in dev mode. Solved it by moving Details:
CLI still tries to access So I've moved |
@gnibeda Thanks, that worked for me! It looks like if you have disabled SSR you have to move the related configuration to the section that is really using it, PROD. I had the exact same use case and it now works |
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. |
Originally posted by @rabikr in #59602
The text was updated successfully, but these errors were encountered: