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.

After upgrading to vite3.0,Some components disappeared

See original GitHub issue

Describe the bug

Both local dev and build can be accessed normally, and the problem occurs after the release

There is an exception code comment in the component 截屏2022-07-14 18 41 38

Reproduction

https://github.com/ckvv/vite-test

System Info

System:
    OS: Linux 4.14 Amazon Linux AMI 2018.03
    CPU: (2) x64 Intel(R) Xeon(R) Platinum 8275CL CPU @ 3.00GHz
    Memory: 537.37 MB / 3.65 GB
    Shell: 4.2.46 - /bin/bash
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    Yarn: 1.22.5 - /usr/bin/yarn
    npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
  npmPackages:
    @vitejs/plugin-vue2: 1.1.2 => 1.1.2
    vite: 2.9.14 => 2.9.14

Used Package Manager

yarn

Logs

No response

Validations

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sapphi-redcommented, Jul 16, 2022

If I remove unplugin-vue-components and imported manually, it worked. https://stackblitz.com/edit/github-zssvdu?file=vite.config.js

I think it’s a bug in that (or maybe it does not support Vite 3 yet).

0reactions
ckvvcommented, Jul 15, 2022

@bluwy @caoxiemeihao Hello, I have added reproduction, in order to prevent you from being unable to reproduce in your own machine, I have submitted the dist directory,

Read more comments on GitHub >

github_iconTop Results From Across the Web

After upgrading to vite3.0,Some components disappeared #467
Describe the bug. Both local dev and build can be accessed normally, and the problem occurs after the release. There is an exception...
Read more >
CSS missing for some components on Vite bundle
I'm using Vite as my bundler, I have not made any changes to the config beyond what comes with the react template, which...
Read more >
Vite 3.0 is out!
First, Terser is no longer installed by default. This dependency was no longer needed since we already made esbuild the default minifier for...
Read more >
Swiper Vue.js Components
SwiperSlide component has the following slot props: isActive - true when current slide is active; isPrev - true when current slide is the...
Read more >
vue/compat
After the upgrade, to use <transition> and <keep-alive> with <router-view> requires using the new scoped-slot based syntax. Example commit. Pick ...
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