Vue3 project not working after vite build in production mode
P粉533898694
P粉533898694 2023-12-10 14:40:50
0
1
455

I have a project that runs fine in development mode, but if I build the project using "vite build" some components won't work.

There are no errors in the console or build log.

Use vite build --modedevelopment to generate the bundle and the project runs fine.

I created a POC to make it easier to show everyone the problem.

P粉533898694
P粉533898694

reply all(1)
P粉868586032

The vue-collapsible-panel package you are using is not very popular and there is this open issue when doing production builds, so I'm guessing it has nothing to do with Vue/Vite.

I recommend you to use other more popular/supported packages.
You might find something interesting here: https://github.com/vuejs/awesome-vue#menu

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!