LoginSignup
10
5

More than 3 years have passed since last update.

CircleCIでCannot find module '@babel/compat-data/corejs3-shipped-proposals'

Posted at

yarn.lockを全く修正していないのに、2020/04/16にwebpackでbuildしたら以下のエラーが発生した

ERROR in ./src/javascript/something.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
Require stack:
- /home/circleci/project/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
- /home/circleci/project/node_modules/@babel/preset-env/lib/index.js
- /home/circleci/project/node_modules/@babel/core/lib/config/files/plugins.js
- /home/circleci/project/node_modules/@babel/core/lib/config/files/index.js
- /home/circleci/project/node_modules/@babel/core/lib/index.js
- /home/circleci/project/node_modules/babel-loader/lib/index.js
- /home/circleci/project/node_modules/loader-runner/lib/loadLoader.js
- /home/circleci/project/node_modules/loader-runner/lib/LoaderRunner.js
- /home/circleci/project/node_modules/webpack/lib/NormalModule.js
- /home/circleci/project/node_modules/webpack/lib/NormalModuleFactory.js
- /home/circleci/project/node_modules/webpack/lib/Compiler.js

原因は不明だが、package.jsonを7.9.0に固定したらうまく動いた

"@babel/preset-env": "=7.9.0"

参考

10
5
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
5