Open 8L4V4 opened 3 years ago
I'm facing the same issue as well. I've had an application running on Netlify for a few months now, which has been working fine. I made some changes, re-wrote unit tests, and confirmed that everything worked well locally. The issue arises on deployment with a similar error message as shown above.
hello, has this issue been fixed ?
i've had a similar one since last weekend..i haven't been able to fix mine
I am also facing the same issue .... anyone can tell me why this problem is in production and how to fix it?
this is reactJS app using react-mapbox-gl mapbox-gl --save
I solved this problem which is come in production.😊
just changed my package.json browserslist.production
field.
this
//....
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
// ...
},
to this
//....
"browserslist": {
"production": [
"defaults",
"not ie 11"
],
// ...
},
@naseemkhan7021 that didn't work for me. I wonder why. I'm on React by the way.
I downgraded to v 1.13.0 and it's worked just fine. That's the recommended workaround
To downgrade do npm i mapbox-gl@1.13.0
@naseemkhan7021 very thanks!!!!!!!!!! work for me
@naseemkhan7021 thank you so much. Your suggestion worked!
@naseemkhan7021 @EmmanuelTheCoder i tried the both but when i am building my project its failed.
I've spotted production build fail with error
Uncaught ReferenceError: y is not defined
(See screenshot below)Steps to reproduce - create fresh react app with TypeScript. Add dependencies
npm install react-mapbox-gl mapbox-gl --save
Try to build with
npm run build
And after check with
npm serve -s build
Code from my new App