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

Error rendering component in puppeteer #417

Closed
stereobooster opened this issue Oct 11, 2017 · 2 comments
Closed

Error rendering component in puppeteer #417

stereobooster opened this issue Oct 11, 2017 · 2 comments

Comments

@stereobooster
Copy link

At first I thought it is an error of mapbox-gl mapbox/mapbox-gl-js#3437. But than I tried vanila mapbox-gl and it works fine.

Error: TypeError: Cannot read property 'resize' of undefined
    at resize (../node_modules/mapbox-gl/dist/mapbox-gl.js:398:5239)
    at resize (../node_modules/mapbox-gl/dist/mapbox-gl.js:398:2910)
    at n.componentDidMount (../node_modules/react-mapbox-gl/lib/map.js:132:0)
    at componentDidMount (../node_modules/react-dom/cjs/react-dom.production.min.js:169:71)
    at Nh (../node_modules/react-dom/cjs/react-dom.production.min.js:180:195)
    at c (../node_modules/react-dom/cjs/react-dom.production.min.js:183:347)
    at k (../node_modules/react-dom/cjs/react-dom.production.min.js:184:366)
    at p (../node_modules/react-dom/cjs/react-dom.production.min.js:188:389)
    at y (../node_modules/react-dom/cjs/react-dom.production.min.js:187:415)
    at c (../node_modules/react-dom/cjs/react-dom.production.min.js:248:42)

I will try to get more information later.

@stereobooster
Copy link
Author

stereobooster commented Oct 11, 2017

I created demo project https://github.com/stereobooster/mapbox-prerender

UPD: decoded stacktrace a bit more

Error: TypeError: Cannot read property 'resize' of undefined
    at resize (../node_modules/mapbox-gl/src/ui/map.js:508:8)
    at pitch (../node_modules/mapbox-gl/src/ui/map.js:331:31) // this is probably some kind of error in decoder
    at s.componentDidMount (../node_modules/react-mapbox-gl/lib/map.js:139:0)
    at componentDidMount (../node_modules/react-dom/cjs/react-dom.production.min.js:169:71)

@stereobooster
Copy link
Author

This is mapbox-gl error, I was able to reproduce it with pure mapbox-gl. mapbox/mapbox-gl-js#5460

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

1 participant