dist folder not working "Uncaught TypeError: Cannot set property 'render' of undefined
Version
3.0.1
Reproduction link
Node and OS info
Node:v8.11.3, npm:6.4.1
Steps to reproduce
I have created a new vue cli3 project. There is no problem with "npm run serve" command. Everything is working well. But when i build the project with "npm run build" commad, I find a dist folder with no error. After uploading this folder contents on gituhub I see a blank page with the console error message : Uncaught TypeError: Cannot set property 'render' of undefined at r (componentNormalizer.js:24) at Module.56d7 (Project.vue:9) at c (bootstrap:78) at Object.0 (bootstrap:151) at c (bootstrap:78) at s (bootstrap:45) at 0 (bootstrap:151) at bootstrap:151
What is expected?
this project can run with "npm run build"
What is actually happening?
Uncaught TypeError: Cannot set property 'render' of undefined at r (componentNormalizer.js:24) at Module.56d7 (Project.vue:9) at c (bootstrap:78) at Object.0 (bootstrap:151) at c (bootstrap:78) at s (bootstrap:45) at 0 (bootstrap:151) at bootstrap:151
It's caused by the empty script blocks in the components, though I haven't yet figured out why it works in development environment.
@sodatea u r right
@sodatea Thanks
@sodatea you are life saver bro!!! Awesome
@sodatea Thanks a lot!
Awesome bro......
@sodatea thanks
what is the solution remove add dummy method, data or props?
what is the solution remove add dummy method, data or props?
just remove the empty script tag