score:0
you can find here more precise answer: https://stackoverflow.com/a/68531196/13282460
quote 👇
"1. better solution.
check if your strapi project is nested within another project that uses babel/webpack. i had some old files in my directory with all my projects. when i removed them, it works.
2. workaround solution (with every packages update, it will be back to an earlier version)
- in your strapi folder, go to → node_modules/strapi-admin/webpack.config.js
- locate the line → require.resolve('@babel/preset-env')
- replace it with [require.resolve('@babel/preset-env'),{ targets: 'defaults' }],
- run the command - npm run dev"
score:1
finally, i managed to resolve the issue. you need to update the webpack.config.js from
require.resolve('@babel/preset-env')
to
[require.resolve('@babel/preset-env'),{ targets: "defaults" }]
inside the module options
Source: stackoverflow.com
Related Query
- Strapi develop command failed
- Can't deploy React Project. Error is Command failed with exit code 1
- Command `yarn add react-native --exact` failed
- yarn test: all tests passed but returned "error Command failed with exit code 1"
- Yarn Start Command failed with exit code 1
- Cannot run gatsby develop - There was a problem loading the local develop command
- "gatsby-plugin-sharp" plugin Couldn't be found when gatsby develop command is ran
- Xcode: ld: 275 duplicate symbols for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
- NextJS next/image Failed to parse src with Strapi 4 and Graphql
- Command Error : ( MongoServerError: bad auth : Authentication failed )
- Gatsby develop command runs but gatsby build gives error
- setupProxy file in CRA makes react-scripts start fail with Command failed with exit code 1 error
- When typing yarn start in the terminal an error occurs stating /bin/sh: nodemon: command not found Command failed with exit code 127 comes up
- Next build command fails: error Command failed with exit code 1
- hardhat, truffle, brownie, react stopped working?!? error Command failed with exit code 1
- Problem in the command "npm start" Failed at the fourth-tic-tac-toe@0.1.0 start script. npm ERR! react-scripts: not found
- Gatsby develop command is running forever
- sh: react-scripts: command not found after running npm start
- 'react-scripts' is not recognized as an internal or external command
- What does this "react-scripts eject" command do?
- ChunkLoadError: Loading chunk node_modules_next_dist_client_dev_noop_js failed
- Failed form propType: You provided a `value` prop to a form field without an `onChange` handler
- NPM - Failed to replace env in config: ${NPM_TOKEN}
- React Native on Android failed to find Build Tools
- Warning : Failed child context type: Invalid child context 'virtualizedCell.cellKey' of type 'number' supplied to 'CellRenderer', expected 'string'
- React Native Error - yarn' is not recognized as an internal or external command
- React Native: JAVA_HOME is not set and no 'java' command could be found in your PATH
- Failed to compile. Module not found: Can't resolve 'react-router-dom'
- Mocha testing failed due to css in webpack
- Warning: Failed propType: Invalid prop `component` supplied to `Route`
More Query from same tag
- Retrieve data from Apollo store
- How can I share state between two custom hooks?
- Return promise from Fetch when posting through Nodemailer
- How to refresh the React-Admin list data every X seconds?
- Using gulp-babel gives Uncaught ReferenceError: require is not defined
- how can i use ONLY bind instead of call when Iterating a NodeList using forEach?
- How to use useStyle to style Class Component in Material Ui
- Google map react failed to installed
- React Unable to access state property - Not found solution
- How to replace current url using react router
- How to fix error "could not find store in context connect(App)" when unit testing connected components?
- How to structure multiple react apps and still share code + assets
- Change checked attribute of controlled checkbox (React)
- Test react native firebase push notification in simulator
- What is difference in following two setState
- ESLint error Unexpected block statement surrounding arrow body
- component update doesn't see the latest var value
- Protected page using react-router-dom doesn't work
- Props value not showing on top of render to a function ReactJS
- How to add new elements to table using ReactJS
- Cards inside the grid-container: each child in a list should have a unique "key" prop
- Dropdown with multiple selection limit
- Render array of objects in React
- Testing material-ui TextField by role using react-testing-library
- How to detect when an element comes in view of another element ie Modal
- React app fetch() response is empty although API endpoint returns data when sending a GET request from somewhere else
- Updating react context causes infinite render loop
- React Using Hook set state undefined when trying delete each item
- Redux react not re-rendering component after state changes
- How to use Redux Sagas to load single object?