I am encountering an issue with my create-react-app failing to build, showing the following error:
./src/index.css
Module build failed: BrowserslistError: Unknown browser query `dead`
at Array.forEach (<anonymous>)
I have carefully reviewed my package-lock.json file and updated all packages that rely on browserslist. However, some of these packages do not upgrade to version 3 or above, which I suspect may be causing the problem. The packages in question are:
-autoprefixer -babel-preset-env -babel-preset-react-app -postcss-merge-rules
I am contemplating removing these packages, but other dependencies in my project rely on them as well. As a result, I feel a bit stuck and uncertain about what steps to take next. While the application runs without issues, it fails to build properly, making me unsure if it would function correctly on a development server.
Below is a snippet from my package.json file:
{
"name": "dashboard",
"version": "0.1.0",
"private": true,
// Rest of the content remains the same