mapbox/mapbox-react-examples

Unable to use mapbox-gl with webpack.

aramay opened this issue · 1 comments

I am unable to import 'mapbox-gl' package. I get the following error.
version: webpack@5.40.0

Uncaught TypeError: _mapbox_gl__WEBPACK_IMPORTED_MODULE_2___default(...) is not a constructor
at eval (Maps.js?cab5:15)
at invokePassiveEffectCreate (react-dom.development.js?61bb:23487)
at HTMLUnknownElement.callCallback (react-dom.development.js?61bb:3945)
at Object.invokeGuardedCallbackDev (react-dom.development.js?61bb:3994)
at invokeGuardedCallback (react-dom.development.js?61bb:4056)
at flushPassiveEffectsImpl (react-dom.development.js?61bb:23574)
at unstable_runWithPriority (scheduler.development.js?3069:468)
at runWithPriority$1 (react-dom.development.js?61bb:11276)
at flushPassiveEffects (react-dom.development.js?61bb:23447)
at eval (react-dom.development.js?61bb:23324)

Please let me know if more info can help troubleshoot. TY

nvm. There was an error on my end.