JavaScript/vue.js/error:修订间差异
来自康健生活
| 第19行: | 第19行: | ||
Vue.use(MenuItemGroup);</syntaxhighlight> | Vue.use(MenuItemGroup);</syntaxhighlight> | ||
* Unknown custom element: <el-menu> - did you register the component correctly? For recursive components, make sure to provide the "name" option | * Unknown custom element: <el-menu> - did you register the component correctly? For recursive components, make sure to provide the "name" option | ||
*: 耗时 5 个小时,试过多个 webpack 方案,经过仔细爬坑,是因为 vue 与 ejs 不兼容导致的(vue-loader 与 html-webpack-plugin 和 ejs-compiled- | *: 耗时 5 个小时,试过多个 webpack 方案,经过仔细爬坑,是因为 vue 与 ejs 不兼容导致的(vue-loader 与 html-webpack-plugin 和 ejs-compiled-loader),将 ejs 解析器 替换回 ejs-loader(vue-loader 与 html-webpack-plugin 和 ejs-loader)即可,但是这样就不能使用 ejs 嵌套标签 | ||