reactを勉強中、適当なサイトを参考にしてwebpackコマンド叩いたら以下のエラーが。
babel-loader@8 requires Babel 7.x (the package '@babel/core'). If you'd like to use Babel 6.x ('babel-core'), you should install 'babel-loader@7'.
babel-coreと@babel/coreは何が違うんだ?と思って調べたらstackoverflowにあった。
babeljs - What is the difference between babel-core and @babel/core? - Stack Overflow
バージョン7からbabel-coreから@babel/coreに切り替えていっているらしい。
なのでbabel-coreの最新バージョンは6、
@babel/coreが7になっている。
babel-coreをインストールしている記事は古いので注意が必要ということで。