-
-
Notifications
You must be signed in to change notification settings - Fork 928
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
Vite 4.0.1 and "You appear to have multiple instances of Solid" #1426
Comments
Check the lockfile for possible duplicates |
@lxsmnsyc we already found out that this is a bug introduced in the vite resolver in 4.0.1, we just haven't found the cause yet. |
Today I updated my app to Vite 4 and it broke. It logs the same error as yours. |
This seems to be the issue in vite #11385. |
For me, the culprit seems to be solid-router. |
I think it would hapoen to any package that has dependencies on solid-js. Make sure there is no duplication in your node modules and if there isn't it probably something new happening due to bundling in Vite 4. |
I think |
Can confirm adding: ...
optimizeDeps: {
disabled: "dev",
},
... fixed the issue I was seeing with |
It was suggested to me that this commit might be responsible. We should try reversing it to confirm. |
Could anyone try this branch of vite vitejs/vite#11410 to test whether it is fixed? |
In the meantime, we released vite@4.0.2 reverting vitejs/vite#11290. |
I can confirm that this issue is fixed in |
Tested vite@4.0.2 on my app and this issue is fixed. |
So I guess this issue can be closed? |
Yep it works fine after vite@4.0.2 upgrade, thanks everyone! |
Hey there 👋 Running into this issue in a new setup (setting up a complex monorepo).
This ☝️ shows up once per I have tried all combinations of config and the issue persists. I am afraid it might be more than just noise and more complex tests . I have branched the repository for reproduction. sake. Moving on with my sprint, might have more details once I start adding the actual production code. Help appreciated 🙇 |
Possibly related: #1720 |
Describe the bug
Hey peeps,
I am trying to upgrade my app to vite v4.0.1, however it ran into the error in header. The site cannot be loaded due to the error.
The error is clear and I understand what it means. However, I couldn't pin point which part of the app/libs caused the issue.
It would be great if someone has any thoughts how to debug this?
Thanks!
Your Example Website or App
N/A
Steps to Reproduce the Bug or Issue
Change to vite in
package.json
to4.0.1
and runvite
.Expected behavior
The issue should not be there and everything loads correctly.
Screenshots or Videos
N/A
Platform
Additional context
I am using latest of a few libs:
The text was updated successfully, but these errors were encountered: