From 67a60e6253cc7a25565690317e00a8d726e6281b Mon Sep 17 00:00:00 2001 From: Harel Levy Date: Wed, 1 Nov 2023 17:18:52 +0200 Subject: [PATCH] Update map.service.ts (#408) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 https://github.com/evanw/esbuild/issues/891, fixes: https://github.com/Wykks/ngx-mapbox-gl/issues/403 https://github.com/Wykks/ngx-mapbox-gl/issues/407 --- libs/ngx-mapbox-gl/src/lib/map/map.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ngx-mapbox-gl/src/lib/map/map.service.ts b/libs/ngx-mapbox-gl/src/lib/map/map.service.ts index 75318d3f..42fe9ab7 100644 --- a/libs/ngx-mapbox-gl/src/lib/map/map.service.ts +++ b/libs/ngx-mapbox-gl/src/lib/map/map.service.ts @@ -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 {