Error: Cannot find module '@vue/babel-preset-app'
Adding @vue/babel-preset-app
as one of the devDependencies
should solve the issue.
If you are using npm, do
npm install @vue/babel-preset-app --save-dev
for yarn
yarn add @vue/babel-preset-app --save-dev
for pnpm
pnpm install @vue/babel-preset-app --save-dev
I solve this issue, after run this command.
npm install @vue/babel-preset-app --save-dev
then it throw me this error
Module build failed (from ./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js)
I launched the following command
npm install -D babel-loader @babel/core @babel/preset-env webpack
it gave me a new error
Failed to resolve loader: vue-style-loader
after that I run a npm install vue-style-loader
and it gave me another error angain, this one Error: Loading PostCSS Plugin failed: Cannot find module 'autoprefixer'
Finally I run the next following command, npm i autoprefixer
and It worked for me.