Skip to content

fix: webpack5 externalsType.script add vue.js #1988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

maotong06
Copy link

fix webpack dev runtime on use externalsType.script;

review bug:
webpack config this:

externalsType: 'script',
externals: {
  vue: ['https://cdn.jsdelivr.net/npm/vue@2.7.10/dist/vue.js', 'Vue'],
},

then, this has error in console
TypeError: Cannot read properties of undefined (reading 'split')
and can not render vue anymore.

@maotong06
Copy link
Author

init by Vue2 and vue cli

@maotong06 maotong06 closed this Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant