[英]redux-socket.io/dist/index.js: Couldn't find preset \“es2015\”
I installed "redux-socket.io" and when I run the app again it shows and error like this: 我安装了“ redux-socket.io”,当我再次运行该应用程序时,它显示并显示如下错误:
error: bundling failed: "TransformError: ../../../../node_modules/redux-socket.io/dist/index.js: Couldn't find preset \\"es2015\\" 错误:捆绑失败:“ TransformError:../../../../ node_modules / redux-socket.io / dist / index.js:找不到预设\\“ es2015 \\”
How to solve this? 如何解决呢?
If you're using babel, you have to install babel-preset-es2015 and use it in your .babelrc
, eg: 如果您正在使用babel,则必须安装babel-preset-es2015并在.babelrc
使用它,例如:
{
"presets": ["es2015"]
}
Hope that this can help :) 希望这可以帮助:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.