Open ashkanahrabi opened 2 years ago
Hi @ashkanahrabi - thanks for reporting this issue to GL-JS! I found a similar issue previously closed #8475.
Have you tried increasing the node memory with something like export NODE_OPTIONS=--max_old_space_size=4096
or adding NODE_OPTIONS = "--max_old_space_size=4096
to a netlify.toml file? If this doesn't help, we would need further information to reproduce the issue. Do you still experience this issue when downgrading to another version of GL-JS?
Thanks for using Mapbox!
Thanks @avpeery
I think the provided solution isn't the best practice. Maybe I'm wrong.
After downgrading to 1.13.0
the issue was gone. Seems like the issue happens only on the latest version.
Let me know of any other information needed to help you find the issue.
I am also experiencing this issue since upgrading to v2. not only do my builds while deploying to netlify fail, but the build step for my integration tests on github actions is also failing. downgrading to 1.13.0 solves the issue
There's a JS heap dump issue which occurred while I was deploying a project on Netlify which uses mapbox-gl as a dependency.
mapbox-gl-js version: 2.8.2
browser: -
Steps to Trigger Behavior
mapbox-gl@2.8.2
on your project using npm:npm install --save mapbox-gl
npm run build
the following error shows up:NOTE
mapInstance.remove()
on the cleanup effect hook (React 17.0.2) but this doesn't help either.npm run build