Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dist folder not working "Uncaught TypeError: Cannot set property 'render' of undefined #2430

Closed
albeehsiao917 opened this issue Sep 3, 2018 · 9 comments

Comments

@albeehsiao917
Copy link

albeehsiao917 commented Sep 3, 2018

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

@haoqunjiang
Copy link
Member

It's caused by the empty script blocks in the components, though I haven't yet figured out why it works in development environment.

@jesse-li
Copy link

jesse-li commented Sep 13, 2018

@sodatea u r right

@anshurathee
Copy link

@sodatea Thanks

@rostismal
Copy link

@sodatea you are life saver bro!!! Awesome

@Vishnunair1
Copy link

@sodatea Thanks a lot!

@27As
Copy link

27As commented Oct 25, 2018

Awesome bro......

@realdennis
Copy link

@sodatea thanks

@abrahamstalin
Copy link

what is the solution remove add dummy method, data or props?

@dhantoot
Copy link

what is the solution remove add dummy method, data or props?

just remove the empty script tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants