Skip to content
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

Failed to build. @babel/runtime need to be installed #14

Closed
phuczeero opened this issue Apr 30, 2020 · 2 comments
Closed

Failed to build. @babel/runtime need to be installed #14

phuczeero opened this issue Apr 30, 2020 · 2 comments
Labels
issue of create-react-app Its an issue of CRA rather than the boilerplate

Comments

@phuczeero
Copy link

Description

When building, app throw an error

Failed to compile.
Cannot find file '......./node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/toConsumableArray' in './src/store'.

I installed @babel/runtime and it works.

@Can-Sahin
Copy link
Member

Can you describe the steps. It works fine building on CI and i can confirm as well after installing it builds fine

@phuczeero
Copy link
Author

phuczeero commented May 1, 2020

Sorry, my bad. I get this error when using with @elastic/eui
https://github.com/elastic/eui/blob/master/wiki/consuming.md#module-build-failed-or-module-parse-failed-unexpected-token-error

It seems CRA hasn't supported resolve.mainFields configurable yet.
facebook/create-react-app#8139

Solution: facebook/create-react-app#7183 (comment)

@Can-Sahin Can-Sahin added the issue of create-react-app Its an issue of CRA rather than the boilerplate label May 1, 2020
Thinh922001 pushed a commit to Thinh922001/KLTN-HUIT-FE that referenced this issue Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue of create-react-app Its an issue of CRA rather than the boilerplate
Projects
None yet
Development

No branches or pull requests

2 participants