-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Cannot find module 'vite-plugin-node-polyfills/shims/buffer' #74
Comments
I am getting a similar error when upgrading from
|
If either of you could add a reproduction on StackBlitz or similar, that'd be helpful for me to debug. |
FWIW it's extremely helpful to have a template ready to go for issues. I've created these two for different projects as a reference: https://stackblitz.com/fork/jsx-email-repro https://stackblitz.com/fork/rollup-repro I'm not sure how to isolate my use case for this into a repro for Vite, I just don't have enough experience with Vite yet to know how to force the behavior. |
Here is the Stackblitz:
will yield:
With this change, it will work:
The error can also be removed by converting the package in the |
I have the same issue i have to downgrade to 0.17.0
|
This seems to be related to some bigger changes happening in Vite 5. From what I can tell, version |
The fix for this has been released in |
Unfortunately when upgrading to
|
@mfal that sounds like a different issue. Can you please open a new issue with a reproduction? I tested the build with the above example, and it seems to be working fine. |
Just updates to
0.19.0
from0.16.0
and started getting the errorCannot find module 'vite-plugin-node-polyfills/shims/buffer
Downgraded back to
0.16.0
and error vanished. Apologies that I don't have the time atm to put together a reproduction, but it seems to affect every vite v4.x project I have going.The text was updated successfully, but these errors were encountered: