You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have upgraded our (quite large) react application to MapLibre 2.2.0-pre.3:
It builds, but when the map should be shown, I get
ReferenceError: _wrapNativeSuper is not defined
(at least the first such error seems to occur with ajax.ts)
I've tried everything mentioned in #1011, but still no success (we never supported IE).
As I understand _wrapNativeSuper is something introduced by building with babel or so.
Are there any minimum versions for React, babel, webpack or other build-related libraries?
The text was updated successfully, but these errors were encountered:
I'm using angular and ngx-maplibre as a wrapper without any issues.
I suggest to open a issue with the relevant wrapper you use as this is not an issue with this library as far I understand...
It most probably is no problem with maplibre per se, but with maplibre 1.5 everything was fine and the only change was upgrading maplibre and fixing the compile problems. And the problem does only occur, when activating the map view.
So, maybe the build process or some relevant dependencies changed in maplibre between 1.5 and 2.2?
Something important must have changed as indicated by #1011, where only some obscure workaround is mentioned (which doesn't work for me).
Any hints are welcome.
But the library itself is still exported as commonjs which is the major change you are talking about.
This is why we are adding a package.json file to indicate that in the dist folder: https://unpkg.com/browse/[email protected]/dist/package.json
I know that webpack adheres to that file, not sure about other packagers...
I'm converting this to a discussion with your permission...
I have upgraded our (quite large) react application to MapLibre 2.2.0-pre.3:
It builds, but when the map should be shown, I get
(at least the first such error seems to occur with ajax.ts)
I've tried everything mentioned in #1011, but still no success (we never supported IE).
As I understand _wrapNativeSuper is something introduced by building with babel or so.
Are there any minimum versions for React, babel, webpack or other build-related libraries?
The text was updated successfully, but these errors were encountered: