Uncaught TypeError: Cannot set property 'render' of undefined at normalizeComponent (componentNo

vue中出现的错误,虽然很low,但是我觉得我还是需要记录,方便我以后看。

Uncaught TypeError: Cannot set property 'render' of undefined
    at normalizeComponent (componentNormalizer.js?2877:24)
    at eval (App.vue?bff9:9)
    at Module../src/App.vue (app.js:2197)
    at __webpack_require__ (app.js:724)
    at fn (app.js:101)
    at eval (main.js?56d7:1)
    at Module../src/main.js (app.js:2485)
    at __webpack_require__ (app.js:724)
    at fn (app.js:101)
    at Object.0 (app.js:2522)

上面是浏览器的错误提示

下面是启动cmd的时候出现的错误

 

原因很简单,在Vue项目中的App.vue文件中的script标签上把

export default {
    name: 'app',
    data(){
        return{

        }
    }
}

这段代码遗漏了。

你可能感兴趣的:(Uncaught TypeError: Cannot set property 'render' of undefined at normalizeComponent (componentNo)