[babel] error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core...
1578 ワード
😥 問題の状況
Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.
対応するエラーを見て、バーベルバージョンに問題があると言いました...npm uninstall babel-cli babel-core
npm install babel-cli babel-core@^7.0.0-bridge.0
😤 解決策
以下を入力しましたが、上記のエラーが発生し続けました.
npm uninstall babel-cli babel-core
上記のコマンドの代わりに、以下の手順で作成します.npm uninstall @babel-cli @babel-core
正しく削除またはインストールされているかどうかを確認するには、package-lock.json
ファイルにctrl+F
と入力し、babel-core
を参照してください.今出てきたのはいいですね.😵 一日中この間違いを解決しています!!
バージョンに注意してください.
Reference
この問題について([babel] error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core...), 我々は、より多くの情報をここで見つけました https://velog.io/@muz/Error-Requires-Babel-7.0.0-0-but-was-loaded-with-6.26.3.-If-you-are-sure-you-have-a-compatible-version-of-babelcoreテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol