question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

page use vant and @vitejs/plugin-legacy plugin build.

See original GitHub issue

Describe 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. image image

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
gaoxianglyxcommented, Aug 12, 2021

same error !!!

1reaction
hxdyjcommented, Mar 14, 2022

Hi @hxdyj. I tested the repro locally and this seems to be fixed now. I dont see any files missing after upgrading Vite to 2.8.6 and plugin-legacy to 1.7.1. Can you confirm if this is fixed for you?

already fixed. Thank you!!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found