-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Dynamic imports doesn't work after i upgraded to Vite 5.3.1 #17548
Comments
I can't reproduce the error with the repro you gave. I ran |
@bluwy use this code in app.tsx:
just to make sure we follow the same steps:
|
you need to use the package to trigger the error |
I can't reproduce the issue following the steps. Everything is working fine without errors on my end. If I manually check the imports where you're showing the error, I can see that the path is valid. Can you provide a full repro of the problem as a github repo or stackblitz? |
@bluwy i apologize i forgot to mention that i have upgraded vite in my package to version 5.3.1. Try changing version building the package and use in another vite project |
Can you provide a proper repro? I think there's a lot of back and forth that can be prevented if we have it. |
I can't deploy a non working version of my package, i have created a seperate branch which you can clone and test by the following:
i apologize i can't provide a codesandox since the package with Vite 5.3.1 is not deployed to npm. |
@bluwy quick reminder this issue still persists, i put in the replit bellow all things you have asked |
Thanks. I managed to narrow it down to a simpler repro here: https://stackblitz.com/edit/vitejs-vite-ezp15j?file=main.js. It's caused by #16078 which also affects Vite 5.2.12. I'll try to make a fix for this today. cc @sapphi-red |
Describe the bug
This code used to work with my package package but now i get this error when i try my package in a vite environment:
Reproduction
https://github.com/sadiki-o/react-full-year-scheduler/
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: