Vue.component('keyboard_input', require('./component/keyboard_input.vue'));
用Vue.component()注册组件时,console提示require is not defined,在相关目录已经写好了keyboard_input.vue了,require is not defined是怎么回事?
Vue.component('keyboard_input', require('./component/keyboard_input.vue'));
用Vue.component()注册组件时,console提示require is not defined,在相关目录已经写好了keyboard_input.vue了,require is not defined是怎么回事?
10 回答11.4k 阅读
5 回答4.9k 阅读✓ 已解决
4 回答3.2k 阅读✓ 已解决
2 回答2.9k 阅读✓ 已解决
2 回答4.8k 阅读✓ 已解决
4 回答4.4k 阅读✓ 已解决
4 回答1.9k 阅读✓ 已解决
引入require了吗