运行错误 parseComponent 错误
来源:2-21 【讨论题】对 Typescript 初步学习后的印象和困惑
php_go的小白
2021-06-07
Syntax Error: TypeError: Cannot read property ‘parseComponent’ of undefined
请问老师 我在运行的时候 有这个错误
以下是package.json
{
"name": "vue3-basic",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.21.1",
"bootstrap": "^5.0.0-beta2",
"element-plus": "^1.0.2-beta.31",
"markdown-it": "^12.0.1",
"mitt": "^2.1.0",
"vue": "^3.0.5",
"vue-router": "^4.0.5",
"vuex": "^4.0.0"
},
"devDependencies": {
"@types/markdown-it": "^12.0.1",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"@vue/cli-plugin-eslint": "^4.5.11",
"@vue/cli-plugin-typescript": "^4.5.11",
"@vue/cli-service": "^3.3.1",
"@vue/compiler-sfc": "^3.0.11",
"@vue/eslint-config-typescript": "^5.1.0",
"eslint": "^6.8.0",
"eslint-plugin-vue": "^7.5.0",
"typescript": "^3.9.7"
}
}
写回答
1回答
-
张轩
2021-06-08
同学你好 请问你是在运行哪个命令的时候报的这个错误? 是 npm run serve 吗?
072021-06-10
相似问题