我的一些团队成员无法正确运行vuepress项目。当他们运行vuepress dev
时,他们会面临以下警告:
WARNING in ./.vuepress/theme/Layout.vue?vue&type=script&lang=js (/Users/kevin.hu/.config/yarn/global/node_modules/cache-loader/dist/cjs.js??ref--3-0!/Users/kevin.hu/.config/yarn/global/node_modules/babel-loader/lib??ref--3-1!/Users/kevin.hu/.config/yarn/global/node_modules/vue-loader/lib??vue-loader-options!./.vuepress/theme/Layout.vue?vue&type=script&lang=js) 103:50-69
"export 'pathToComponentName' was not found in '@app/util'
@ ./.vuepress/theme/Layout.vue?vue&type=script&lang=js
@ ./.vuepress/theme/Layout.vue
@ /Users/kevin.hu/.config/yarn/global/node_modules/vuepress/lib/app/.temp/routes.js
@ /Users/kevin.hu/.config/yarn/global/node_modules/vuepress/lib/app/app.js
@ /Users/kevin.hu/.config/yarn/global/node_modules/vuepress/lib/app/clientEntry.js
@ multi /Users/kevin.hu/.config/yarn/global/node_modules/vuepress/lib/app/clientEntry.js
它可以运行,但不能更改路线。无论使用npm还是yarn重新安装,它仍然面临相同的问题。有想法吗?
"export 'pathToComponentName' was not found in '@app/util'
nodejs版本:v8.11.3
纱线版本:v1.7.0
npm版本:5.6.0
vuepress版本:0.10.1