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

chore(build): fix "cannot find @babel/.../corejs3-shipped-proposals" build error for Node 13.13+/12.17+ #79

Closed
wants to merge 1 commit into from
Closed

chore(build): fix "cannot find @babel/.../corejs3-shipped-proposals" build error for Node 13.13+/12.17+ #79

wants to merge 1 commit into from

Conversation

IepIweidieng
Copy link
Contributor

This closes #73.

Before the fix, when the project is being built on Node 14.15.4, the building is halted with the following exception:

ERROR in ./src/entry.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '/<proj_dir>/PttChrome/node_modules/@babel/compat-data/data/corejs3-shipped-proposals'

According to nodejs/node#32852, a possible fix for this is to upgrade @babel/preset-env to 7.9.0+.

After applying the fix, the project can be built successfully with Node 14.15.4.

…build error for Node 13.13+/12.17+ [closes #73]

Before the fix, when the project is being built on Node 14.15.4,
the building is halted with the following exception:
```
ERROR in ./src/entry.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '/<proj_dir>/PttChrome/node_modules/@babel/compat-data/data/corejs3-shipped-proposals'
```

According to nodejs/node#32852,
a possible fix for this is to upgrade @babel/preset-env to 7.9.0+.

After applying the fix, the project can be built successfully with Node 14.15.4.
@IepIweidieng
Copy link
Contributor Author

After 7f2d668, @babel/preset-env is now 7.16.0.

This issue is fixed per se. Closed.

However, the dependency declared in package.json might be updated if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant