-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yarn start failed after upgrading #11790
Comments
Hi @Mouaadouk302 thanks for reporting, Please add steps to replicate the issue or better a repository replicating the issue |
Remove any mention of node from your browserslist entry in package.json. That fixed it for me. |
removing browserslist and allowing the command to use the default one works for me |
worked for me. Thanks @olawalejuwonm for others, |
i have upgraded react-scripts to v5 and node to v16 & i get error when starting the project knowing that I have reinstalled node_modules.
output :
yarn run v1.22.5
$ react-scripts start
Failed to compile.
For the selected environment is no default script chunk format available:
JSONP Array push can be chosen when 'document' or 'importScripts' is available.
CommonJs exports can be chosen when 'require' or node builtins are available.
Make sure that your 'browserslist' includes only platforms that support these features or select an appropriate 'target' to allow selecting a chunk format by default. Alternatively specify the 'output.chunkFormat' directly.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered: