-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Regression in 4.3 with Linaria in dev mode #12930
Comments
This seems to be affected by #12655.
But later on there's a url = resolved.id .vite/packages/vite/src/node/plugins/importAnalysis.ts Lines 347 to 349 in e7924d2
So the this.resolveId inside moduleGraph.ensureEntryFromUrl was doing something like this.resolve(resolved.id) .#12655 changed that to this.resolve(url) as it skips the this.resolve .
|
I have the same problem. Reverting to 4.2 for now. |
I think that this may not be a regression, and it is better to be fixed in the Linaria plugin. We discussed potential issues related to Let's close this one for now and let us know if you see anything else odd with Vite 4.3. @sorenhoyer please create a new issue with a minimal reproduction if your issue isn't related to Linaria. Or if you have the same kind of problem, check if you are missing a normalize path. |
Describe the bug
When running
vite
, I now get this error:It works fine with
vite build
+vite preview
.vite@~4.2.0 works fine too in either dev or prod builds.
Not sure if this is an issue with linaria or with vite, I've opened an issue in the linaria repo as well.
Reproduction
https://github.com/nstepien/vite-bug/tree/vite43
Steps to reproduce
Clone the repo, checkout the
vite43
branch,npm ci
npm run dev
-> white page 🛑 it should be greennpm run build
+npm run preview
-> green page ✅System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: