1
2

More than 3 years have passed since last update.

babel

Last updated at Posted at 2019-12-20

babel 困った時 Node.js environment

一番役にたったのは一番上のやつ

結論

npm install --save-dev @babel/core @babel/node

最初ずっと yarn でinstall してたんですけど, npm でしたら一発でした!!

エラー内容

Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3".

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. (While processing preset: 
"/Users/~/node_modules/@babel/preset-env/lib/index.js")
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2