page use vant and @vitejs/plugin-legacy plugin build.
See original GitHub issueDescribe the bug
page use vant lib and @vitejs/plugin-legacy plugin build. run in chrome58 get Error SystemJS https://git.io/JvFET#3.
but page only use my component, it will be normal.
dist/assets
not has file ./index-legacy.62d61901.js
Reproduction
https://github.com/hxdyj/vite-bug-legacy
System Info
System:
OS: Linux 4.4 Debian GNU/Linux 10 (buster) 10 (buster)
CPU: (12) x64 AMD Ryzen 5 PRO 4650U with Radeon Graphics
Memory: 2.58 GB / 15.23 GB
Container: Yes
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 15.11.0 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 7.6.0 - /usr/local/bin/npm
npmPackages:
@vitejs/plugin-vue: ^1.2.5 => 1.2.5
vite: ^2.4.3 => 2.4.3
Used Package Manager
yarn
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- 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 https://github.com/vuejs/vue-next instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Using Plugins - Vite
Using Plugins #. Vite can be extended using plugins, which are based on Rollup's well-designed plugin interface with a few extra Vite-specific options....
Read more >@vitejs/plugin-legacy - npm
The legacy plugin offers a way to use native import() in the modern build while falling back to the legacy build in browsers...
Read more >babel-plugin-vant-component - npm package - Snyk
Modular build plugin for babel. For more information about how to use this package see README. Latest version published 4 years ago.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
same error !!!
already fixed. Thank you!!