I'm trying Jest on Angular 16 which uses esbuild, and get the following error
X [ERROR] Cannot assign to import "baseApiUrl"
node_modules/ngx-mapbox-gl/fesm2022/ngx-mapbox-gl.mjs:34:25:
34 │ MapboxGl.baseApiUrl = options.customMapboxApiUrl;
╵ ~~~~~~~~~~
Imports are immutable in JavaScript. To modify the value of this import, you must export a setter function i
I'm trying Jest on Angular 16 which uses esbuild, and get the following error
The issue seems to be this line. Which is weird, because
baseApiUrl
is already a setter. The only solution I found was modifying request instead.Issue for introducing error to esbuild.
Using