Closed bobhuangab closed 3 years ago
That sounds like a code error resulting in the compilation failing, rather than a fault with the build system itself.
I'd need more information - if at all possible access to an example repo demonstrating the issue - in order to trace that through further.
A possible hint - what browsers are you compiling for? Autoprefixer (for css) does have a function where they try to get a data value for the name of a particular browser and test whether the property prefix_exceptions
exists on that data, but if there was no data for the browser it could potentially throw that error. See: https://npmdoc.github.io/node-npmdoc-autoprefixer/build/apidoc.html#apidoc.element.autoprefixer.browsers.prototype.prefix
Try also looking at the Debug section on Autoprefixer to see what it is finding/using: https://github.com/postcss/autoprefixer#debug
solve the problem myself nvm use 10.14.2 solves the problem was using 10.13.0
@dawnmist
it's actually aws amplify btw, npm start runs fine on my local
Creating an optimized production build... Failed to compile.
./src/index.css TypeError: Cannot read property 'prefix_exceptions' of undefined at Array.map ()
"react-app-rewired": "2.1.8" node v10.13.0