Module build failed: ReferenceError: Unknown plugin “component“ specified问题解决

Posted vieber

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Module build failed: ReferenceError: Unknown plugin “component“ specified问题解决相关的知识,希望对你有一定的参考价值。

报错信息

Module build failed: ReferenceError: Unknown plugin "component" specified in "

安装了npm install babel-plugin-component -D解决

Module build failed: Error: Couldn't find preset "env" relative to directory

安装npm install babel-preset-env --save 解决

Module build failed: Error: Couldn't find preset "stage-2"

安装babel-preset-stage-2解决

以上是关于Module build failed: ReferenceError: Unknown plugin “component“ specified问题解决的主要内容,如果未能解决你的问题,请参考以下文章

VUE报错:Module build failed: Error: Cannot find module ‘node-sass‘

VUE报错:Module build failed: Error: Cannot find module ‘node-sass‘

Module build failed: Error: Cannot find module ‘node-sass‘ Require stack报错解决

Module build failed: Error: Cannot find module 'node-sass’解决

2021-01-21 Module build failed (from ./node_modules/css-loader/dist/cjs.js)

Module build failed: ReferenceError: Unknown plugin “component“ specified问题解决