You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While upgrading to Vite 4 I also needed to upgrade vitest which was at 0.23.4.
Upgrading to any version of 0.24.x appears to break imports of modules that use a default export. I personally encountered this with react-dropzone and react-router-navigation-prompt.
This one (https://stackblitz.com/edit/github-w9fjy7-9uzxfy) fails because the import from react-dropzone ends up being an object, not the functional component. The only different is vitest at 0.24.4
I am not an expert in all the clashes with different module types etc. but the changelog doesn't seem to indicate that this would be an issue.
Describe the bug
While upgrading to Vite 4 I also needed to upgrade vitest which was at 0.23.4.
Upgrading to any version of 0.24.x appears to break imports of modules that use a default export. I personally encountered this with
react-dropzone
andreact-router-navigation-prompt
.Reproduction
This stackblitz (https://stackblitz.com/edit/github-w9fjy7-juwvvx) has vitest at 0.23.4 and it renders the dropzone.
This one (https://stackblitz.com/edit/github-w9fjy7-9uzxfy) fails because the import from
react-dropzone
ends up being an object, not the functional component. The only different is vitest at 0.24.4I am not an expert in all the clashes with different module types etc. but the changelog doesn't seem to indicate that this would be an issue.
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: