-
Notifications
You must be signed in to change notification settings - Fork 140
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
Cannot assign to import "baseApiUrl" #407
Comments
same here...
Imports are immutable in JavaScript. To modify the value I just have "ngx-mapbox-gl": "^10.0.0", in my package.json... angular 16. |
fixing es-build angular 16 build with 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 ``` related to evanw/esbuild#891, fixes: Wykks#403 Wykks#407
fixing es-build angular 16 build with 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 ``` related to evanw/esbuild#891, fixes: #403 #407
Getting this here too, but on Angular 17. I assumed it was lack of Angular 17 support; weird that it's happening on 16 too: #410 |
Hi did anyone find a fix for this issue |
fixing es-build angular 16 build with 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 ``` related to evanw/esbuild#891, fixes: Wykks#403 Wykks#407
Any update? |
im using Angular version 16,
im initing the map module this way:
when i builed the project i have this error:
i have no idea how to fix this error.
can you help me?
The text was updated successfully, but these errors were encountered: