# 第一套包,相当于babel的转换工具
npm i babel-core babel-loader babel-plugin-transform-runtime -D
# 第二套包,babel的语法
npm i babel-preset-env babel-preset-stage-0 -D## 安装第一个包出现报警告 babel-loader@8.0.5 requires a peer of @babel/core@^7.0.0 原因如下:
# babel-loader@8.x is the Webpack integration used for Babel 7.x. Babel 7.x has moved all packages from a babel-prefix to the @babel npm scope.
# 解决办法就是 将babel-loader@8.x降级为babel-loader@7.x
# npm uninstall babel-loader -D
# npm i babel-loader@7 -D
# 或者一开始就直接为babel-loader指定到@7版本
# npm i babel-core babel-loader@7 babel-plugin-transform-runtime -D
详细解决方案
webpack-babel解决babel-loader@8.0.5 requires a peer of @babel/core@^7.0.0 版本兼容的问题
热度:98 发布时间:2023-10-24 17:51:47.0
相关解决方案
- Core 标签库解决方法
- java itext导出报Connection reset by peer: socket write error,该怎么处理
- strtus2 上载文件报Connection reset by peer: socket write error异常
- jsp页面未加载完毕被关闭,抛java.net.SocketException: Connection reset by peer: socket write,该如何处理
- ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error,该如何解决
- org.apache.catalina.core.ApplicationDispatcher invoke Servlet.service() for se解决思路
- Connection aborted by peer 错误,求高手
- 出现异常:cvs [server aborted]:"passwd" requires write access to the repository
- java.lang.IllegalArgumentException: dom4j-core,jdom,xml-apis,xerces,junit-Extens,该怎么解决
- <Loader delegate="true"/>的功用
- core java 这本书好不好解决方案
- core java 这此书好不好
- java.net.SocketException: Connection reset by peer: socket write error
- This setup requires .NET Framework version 1.1.4322.该怎么解决
- class Core<T> where T : class, new() 求解~ 多谢
- System.Data.OracleClient requires Oracle client software version 8.1.7 or greater
- AT91RM9200 loader.bin的有关问题
- intel pentium G630 跟 intel core E7500 哪个好点
- intel pentium G630 和 intel core E7500 哪个好点解决方法
- core E4300 配什么华硕主板解决方法
- Tiny Core Linux 3.3 公布,10兆Linux
- Tiny Core Linux 3.3 发布,10兆Linux解决思路
- core 文件没有明显异常,不能准确定位BUG,各位给点思路
- 关于tiny core linux的装配
- The absolute uri: http://java.sun.com/jstl/core cannot be resolved in ...
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c&q ...
- PHP Core-LifeCycle
- 关于maven构建的Dynamic Web Module 3.0 requires Java 1.6 or newer 异常
- 踏进WebKit--Loader 的主要变化(1)
- 有关问题解决:The Web project XXX requires missing web components to run