Skip to content

Commit

Permalink
Update map.service.ts
Browse files Browse the repository at this point in the history
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
  • Loading branch information
harellevy authored Oct 17, 2023
1 parent 505efb9 commit 0c38932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ngx-mapbox-gl/src/lib/map/map.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
NgZone,
Optional,
} from '@angular/core';
import * as MapboxGl from 'mapbox-gl';
import MapboxGl from 'mapbox-gl';
import { AsyncSubject, Observable, Subscription } from 'rxjs';
import { first } from 'rxjs/operators';
import {
Expand Down

0 comments on commit 0c38932

Please sign in to comment.