I dont know why getting this error all the time, tryed many times bypass it. Maybe who knowing solution and haved this error?
app.module
NgxMapboxGLModule.withConfig(
{token added..
}),
package
"mapbox-gl": "^0.52.0",
"ngx-mapbox-gl": "^3.0.1",
"@types/mapbox-gl": "^0.51.4",
"@mapbox/geojson-area": "^0.2.2",
"@mapbox/mapbox-gl-geocoder": "^3.1.6",
"@mapbox/simplespec-to-gl-style": "^0.3.2",
index.js:43 Uncaught ReferenceError: global is not defined
at Object../node_modules/buffer/index.js (index.js:43)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/safe-buffer/index.js (index.js:2)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/sha.js/hash.js (hash.js:1)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/sha.js/sha.js (sha.js:10)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/sha.js/index.js (index.js:10)
at __webpack_require__ (bootstrap:79)