Skip to content

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

Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@leostou-cn
Comment options

Answer selected by leostou-cn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6749 on September 25, 2022 20:28.