-
Notifications
You must be signed in to change notification settings - Fork 414
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
ENOENT
error with Vite in dev mode
#1246
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
platform: ssr 🛠️
Issue related to SSR
Comments
nstepien
added
bug report 🦗
Issue is probably a bug, but it needs to be checked
needs: complete repro 🖥️
Issue need to have complete repro provided
needs: triage 🏷
Issue needs to be checked and prioritized
labels
May 6, 2023
github-actions
bot
added
bundler: webpack 📦
Issue is related to webpack bundler
platform: ssr 🛠️
Issue related to SSR
and removed
needs: triage 🏷
Issue needs to be checked and prioritized
labels
May 6, 2023
I'm having the same issue, seems to be some sort of race condition. But even moving the plugins around did not help. |
Still happening, I've updated the branch with the latest version of linaria/vite. |
Still happens with v5, needs to be fixed. |
Created an issue in Vite to find a proper solution, vitejs/vite#14493. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
platform: ssr 🛠️
Issue related to SSR
Environment
@linaria/vite@4.2.11
vite@4.3.5
Description
When running the Vite dev server, linaria can crash trying to open a file that does not exist yet.
In this case, as I understand it, Vite replaces core-js imports with an optimized file, but linaria tries to open that optimized file before it has been created.
If reload the page, then the optimized file will have been created and linaria won't crash anymore.
Reproducible Demo
https://github.com/nstepien/vite-bug/tree/vite-linaria-corejs
Clone the repo, checkout the
vite-linaria-corejs
branch,npm ci
npm run dev
-> crash -> reload page in browser -> worksYou can reproduce the bug again by deleting
node_modules/.vite/
The text was updated successfully, but these errors were encountered: