I was importing these packages in my main project, and adding/using maplibre-gl-components led to double initialization of luma.gl (due to bundled three.js and probably @deck.gl/*). The only solution that worked was to build from source with modified package.json:
"peerDependencies": {
"@deck.gl/core": "^9.2.6",
"@deck.gl/mapbox": "^9.2.6",
"jspdf": ">=2.5.0",
"maplibre-gl": ">=5.16.0",
"react": ">=18.0.0",
"react-dom": ">=18.0.0",
"three": "^0.178.0"
},
I was importing these packages in my main project, and adding/using maplibre-gl-components led to double initialization of luma.gl (due to bundled three.js and probably @deck.gl/*). The only solution that worked was to build from source with modified package.json: