PureDevOps Community

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

I got an error as below when i ran npm start , the same project worked for a while just updated few code and accidentally i removed my package-lock.json otherwise there were not much changes

Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
Require stack:
- /home/patrick/tmp/my-new-project/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
- /home/patrick/tmp/my-new-project/node_modules/@babel/preset-env/lib/index.js
- /home/patrick/tmp/my-new-project/node_modules/@vue/babel-preset-app/index.js
- /home/patrick/tmp/my-new-project/node_modules/@vue/cli-plugin-babel/preset.js
- /home/patrick/tmp/my-new-project/node_modules/@babel/core/lib/config/files/plugins.js
- /home/patrick/tmp/my-new-project/node_modules/@babel/core/lib/config/files/index.js
- /home/patrick/tmp/my-new-project/node_modules/@babel/core/lib/index.js
- /home/patrick/tmp/my-new-project/node_modules/@vue/cli-plugin-babel/index.js
- /home/patrick/tmp/my-new-project/node_modules/@vue/cli-service/lib/Service.js
- /home/patrick/tmp/my-new-project/node_modules/@vue/cli-service/bin/vue-cli-service.js (While processing: "/home/patrick/tmp/my-new-project/node_modules/@vue/cli-plugin-babel/preset.js")
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1030:15)
    at Function.Module._load (internal/modules/cjs/loader.js:899:27)
    at Module.require (internal/modules/cjs/loader.js:1090:19)
    at require (internal/modules/cjs/helpers.js:75:18)
    at Object.<anonymous> (/home/patrick/tmp/my-new-project/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js:10:55)
    at Module._compile (internal/modules/cjs/loader.js:1201:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
    at Module.load (internal/modules/cjs/loader.js:1050:32)
    at Function.Module._load (internal/modules/cjs/loader.js:938:14)
    at Module.require (internal/modules/cjs/loader.js:1090:19)
    at require (internal/modules/cjs/helpers.js:75:18)
    at Object.<anonymous> (/home/patrick/tmp/my-new-project/node_modules/@babel/preset-env/lib/index.js:29:44)
    at Module._compile (internal/modules/cjs/loader.js:1201:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
    at Module.load (internal/modules/cjs/loader.js:1050:32)
    at Function.Module._load (internal/modules/cjs/loader.js:938:14)
 @ multi (webpack)-dev-server/client?http://192.168.178.70:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

After quite a lot of googling , I found an relevant clue that made my day which is this thread Cannot find module '@babel/compat-data/corejs3-shipped-proposals' · Issue #206 · bencodezen/vue-enterprise-boilerplate · GitHub .

The example was on vue js , but for me it is on react and i tried

npm update @babel/compat-data

even after this if you face an issue , please reply to the thread and lets see whether we can help you .