-
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
Imports are immutable in JavaScript - esbuild error #403
Comments
Same here... |
same for me, also opened an issue #407 |
harellevy
added a commit
to harellevy/ngx-mapbox-gl
that referenced
this issue
Oct 17, 2023
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
Closed
@Wykks Can you please release a new version with this fix? |
denisyilmaz
pushed a commit
to denisyilmaz/ngx-mapbox-gl
that referenced
this issue
Sep 10, 2024
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: