Skip to content

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