-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Uncaught TypeError: Cannot read properties of undefined (reading 'klass') #11686
Comments
It seems that downgrading to |
+1 issue for mapbox-gl 2.8 I can get it to work fine during dev, but not after a build. |
@ntakouris Would you be able to provide a reproduction of this issue in CodePen or JSBin to help us get this resolved? This may be the same as #11684 |
@ntakouris what is your setup like? Are you using a transpiler, like Babel? Thanks for reporting this issue! |
@Aeropath what is your browserlist? Have you tried excluding mapbox from being transpiled? https://docs.mapbox.com/mapbox-gl-js/guides/install/#excluding-mapbox-gl-js-explicitly-from-transpilation |
@ntakouris @Aeropath thanks for reporting this issue! We've released a patch v2.8.1 that should fix your error! Thanks! |
Hello. I'm still getting this issue. My code:
I'm using React.js with Next.js (HTML export/static site). |
After updating to latest
mapbox-gl
7.20.3, in order to solve #11457, we get a new error:Uncaught TypeError: Cannot read properties of undefined (reading 'klass')
, every time we pan (and on map load). Sattelite tiles are indeed rendered, but the vector openstreetmap tiles (are names, some roads, etc) are not.mapbox-gl-js version: 7.20.3
Edit: can confirm that this also works with latest versions (mapbox 2.8), published ~20h ago
The text was updated successfully, but these errors were encountered: