You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught TypeError: Cannot set property config of [object Module] which has only a getter
at MapService.assign (ngx-mapbox-gl.mjs:767:32)
at Object.next (ngx-mapbox-gl.mjs:34:22)
at ConsumerObserver.next (Subscriber.js:91:33)
at SafeSubscriber._next (Subscriber.js:60:26)
at SafeSubscriber.next (Subscriber.js:31:18)
at throwIfEmpty.js:9:24
at OperatorSubscriber._next (OperatorSubscriber.js:13:21)
at OperatorSubscriber.next (Subscriber.js:31:18)
at take.js:12:32
at OperatorSubscriber._next (OperatorSubscriber.js:13:21)
I believe this issue setting the accessToken is in fact a duplicate of #373 and that is was resolved with PR #374
I am however seeing a very similar error when attempting to set the customMapboxApiUrl on the map component.
ngx-mapbox-gl.mjs:767 Uncaught TypeError: Cannot set property config of [object Module] which has only a getter
at MapService.assign (ngx-mapbox-gl.mjs:767:1)
at ngx-mapbox-gl.mjs:34:1
at Object.next (Subscriber.js:123:1)
at Subscriber._next (Subscriber.js:63:1)
at Subscriber.next (Subscriber.js:34:1)
at throwIfEmpty.js:10:1
at OperatorSubscriber._this._next (OperatorSubscriber.js:11:1)
at Subscriber.next (Subscriber.js:34:1)
at take.js:12:1
at OperatorSubscriber._this._next (OperatorSubscriber.js:11:1)
I see that the Mapbox config.API_URL property has been changed to be a getter, and they have a baseApiUrl option that can be set. I will submit a PR.
Possible duplicate of #373.
Console output:
ENV:
I use this code in my
shared.module.ts
:The text was updated successfully, but these errors were encountered: