Vue.js vue cli服务生成错误。模块生成失败。TypeError:此[NS]不是函数
我通过Vue.js vue cli服务生成错误。模块生成失败。TypeError:此[NS]不是函数,vue.js,vuejs2,vue-cli,Vue.js,Vuejs2,Vue Cli,我通过vue ui创建了我的应用程序,然后启动了warn build 节点8.11.3,vue3.0.0-rc.10 "dependencies": { "vue": "^2.5.16", "vuex": "^3.0.1" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.0.0-rc.10", "@vue/cli-plugin-e2e-cypress": "^3.0.0-rc.10",
vue ui
创建了我的应用程序,然后启动了warn build
节点8.11.3
,vue3.0.0-rc.10
"dependencies": {
"vue": "^2.5.16",
"vuex": "^3.0.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.0.0-rc.10",
"@vue/cli-plugin-e2e-cypress": "^3.0.0-rc.10",
"@vue/cli-plugin-eslint": "^3.0.0-rc.10",
"@vue/cli-plugin-unit-jest": "^3.0.0-rc.10",
"@vue/cli-service": "^3.0.0-rc.10",
"@vue/eslint-config-standard": "^3.0.0-rc.10",
"@vue/test-utils": "^1.0.0-beta.20",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^23.0.1",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"vue-template-compiler": "^2.5.16"
}
如果删除所有样式标记,则不会出现错误
App.vue:
<template>
<div id="app">
<img src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
</div>
</template>
<script>
import HelloWorld from './components/HelloWorld.vue'
export default {
name: 'app',
components: {
HelloWorld
}
}
</script>
<style lang="stylus">
#app
font-family 'Avenir', Helvetica, Arial, sans-serif
-webkit-font-smoothing antialiased
-moz-osx-font-smoothing grayscale
text-align center
color #2c3e50
margin-top 60px
</style>
从“./components/HelloWorld.vue”导入HelloWorld
导出默认值{
名称:“应用程序”,
组成部分:{
你好世界
}
}
#应用程序
字体系列“Avenir”、Helvetica、Arial、无衬线
-webkit字体平滑抗锯齿
-moz osx字体平滑灰度
文本居中对齐
颜色#2c3e50
利润最高60像素
我没有更改项目中的任何内容,所有内容都是在
vue cli
中生成的。一个快速的谷歌搜索显示这是一个更常见的问题,但我需要查看App.vue
中的内容,以找出造成此问题的原因。有关更多信息,请参见。编辑,删除--我在想其他事情。@Sumurai8我添加了App.vue代码。