When I build the project and open it with Live Server.The browser console output the error of Cannot read properties of undefined (reading 'defineComponent') #6750
Answered
by
MrXieH
leostou-cn
asked this question in
Help/Questions
-
Vue version3.2.37 Link to minimal reproductionhttps://github.com/leostou-cn/xiaohetoutiao.git Steps to reproduceyarn i What is expected?no error What is actually happening?console error and I don't know what went wrong System Info@chrome(105.0.5195.10) window10 Any additional comments?no |
Beta Was this translation helpful? Give feedback.
Answered by
MrXieH
Sep 26, 2022
Replies: 1 comment 1 reply
-
remove config vite.config.ts -> build -> rollupOptions -> external: ['vue'] Because you specified an external dependency on vue, but didn't bring it in from outside |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
leostou-cn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
remove config vite.config.ts -> build -> rollupOptions -> external: ['vue']
Because you specified an external dependency on vue, but didn't bring it in from outside