-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Can't access this.nuxt.renderer inside module when build in production #6532
Comments
Duplicate of #6519 |
@cron13 whoops, sorry. |
@cron13 you need to check if renderer exist or not, its not available during build anymore, like i said in that issue.. So its not a bug |
Thanks for your contribution to Nuxt.js!
Issues that are labeled as |
Version
v2.10.0
Reproduction link
https://codesandbox.io/s/codesandbox-nuxt-i2s9l
Steps to reproduce
Open /modules/bug/main.js
Open terminal with yarn start, than refrash browser panel
dev build work great - you will got right console.log(data) in terminal
Open another terminal and type yarn run build
got TypeError: Cannot read property 'renderRoute' of undefined
What is expected ?
Working function renderRoute
What is actually happening?
TypeError: Cannot read property 'renderRoute' of undefined
The text was updated successfully, but these errors were encountered: