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
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Jinjiang
changed the title
optimizeDeps.entries doesn't work when it's inside node_modules but inside any packages
optimizeDeps.entries doesn't work when it's inside node_modules but not inside any packages
Jul 11, 2023
Entries inside node_modules should have never worked in Vite, the feature was always intended to get entries from the user source code. We didn't have need for this before, so if there is a way to restructure things in your project I think it would be better to avoid adding complexity on Vite's side.
Describe the bug
I have an entry file that needs to be specified manually. After upgrading to 4.4.2 it doesn't work.
Reproduction
https://github.com/Jinjiang/reproductions/tree/vite-optimize-deps-entries-20230711
Steps to reproduce
How to reproduce:
Then uncomment the line 2 in
main.js
and save the file. The error will be thrown in browser console.With vite@4.4.0-beta.0 it works.
System Info
Used Package Manager
pnpm
Logs
Uncaught SyntaxError: The requested module '/node_modules/foo/index.js?v=2366fb81' does not provide an export named 'foo'
Validations
The text was updated successfully, but these errors were encountered: