1. 程式人生 > >babel 7.x 問題

babel 7.x 問題

ERROR in ./src/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@babel/core'
 [email protected] requires Babel 7.x (the package '@babel/core'). If you'd like to use Babel 6.x ('babel-core'), you should install '[email protected]'.

 

新版本不支援那個babel-core了好像

然後應該安裝[email protected]