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
doing an import like: (await import(/* @vite-ignore */'highlight.js/es/core'/* @vite-ignore */)).default;
worked in 4.0.4 but it breaks in 4.1.4( after I updated the vite pkg)
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.
@fi3ework
Thanks so the issue was in 4.0.4.
Changed it to /lib/core and it works.
The error is confusing for me I wasn't able to deduce from it that the export does not exist in lib package.json
I guess
Export lib-name/xxxx does not exist in lib-name/package.json
Describe the bug
doing an import like:
(await import(/* @vite-ignore */'highlight.js/es/core'/* @vite-ignore */)).default;
worked in 4.0.4 but it breaks in 4.1.4( after I updated the vite pkg)
Reproduction
https://github.com/andrei0x309/vite-4.1.4-import
Steps to reproduce
Run:
yarn install
yarn build
System Info
Used Package Manager
yarn
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: