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

Can't access this.nuxt.renderer inside module when build in production #6532

Closed
cron13 opened this issue Oct 8, 2019 · 5 comments
Closed

Comments

@cron13
Copy link

cron13 commented Oct 8, 2019

Version

v2.10.0

Reproduction link

https://codesandbox.io/s/codesandbox-nuxt-i2s9l

Steps to reproduce

  1. Open /modules/bug/main.js

  2. Open terminal with yarn start, than refrash browser panel
    dev build work great - you will got right console.log(data) in terminal

  3. 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

This bug report is available on Nuxt community (#c9877)
@ghost ghost added the cmty:bug-report label Oct 8, 2019
@manniL
Copy link
Member

manniL commented Oct 8, 2019

Duplicate of #6519

@manniL manniL marked this as a duplicate of #6519 Oct 8, 2019
@manniL manniL closed this as completed Oct 8, 2019
@cron13
Copy link
Author

cron13 commented Oct 8, 2019

but in #6519 @aldarund say it`s different issue

@manniL manniL reopened this Oct 8, 2019
@manniL
Copy link
Member

manniL commented Oct 8, 2019

@cron13 whoops, sorry.

@aldarund
Copy link

aldarund commented Oct 8, 2019

@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

@stale
Copy link

stale bot commented Oct 29, 2019

Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as pending will not be automatically marked as stale.

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

No branches or pull requests

4 participants