-
-
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
Vite returns 504 Outdated Optimize Dep for non-existing resource #13506
Comments
please provide a proper minimal reproduction as described in our issue template (codesandbox isn't really friendly for cloning or even just anonymous use)
While at it, please update If they really release packages that contain magic webpack import annotations to npm, they should document that this package can only be consumed with webpack. |
For a vite friendly alternative, check out unplugin-icons, unocss with preset icons or iconify. |
For dynamic path problem, there’s already a reprod in the issue I cited, but that is not the main issue here. This one is about the wrong error message. It gave me 504 outdated dep, so I purged cache and |
Adding the offending dependency to |
Describe the bug
Given the following dynamic import within a dependency located on
localhost:3000/node_modules/.vite/deps/chunk-HCOQKIU7.js
:There are two problems:
TheDuplicate of Dynamic imports with variables in a dependency are not processed at all #6179.import
path does not resolve correctly, because it’s no longer relative to the original module path.Reproduction
https://codesandbox.io/p/sandbox/hopeful-brattain-gz4per
Steps to reproduce
See CodeSandbox link above.
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: