Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.8k views
in Technique[技术] by (71.8m points)

Vue路由报错,看着没问题

Uncaught TypeError: vue__WEBPACK_IMPORTED_MODULE_1__.default is undefined
图片.png
图片.png
图片.png
图片.png
图片.png
这到底什么问题啊


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

检查一下 home、category、cart 和 profile 里面是不是都是 export default
另外,貌似应该加 .vue 扩展名(不过如果是没加扩展名引起的,应该会报另一个错,关于 template 和 render() 的)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...