0

contradictory documentation (use of presets), traps= contradictory error messages (@babel/preset-es2015 vs babel-preset-es2-15) and more. Ugly.

Where do I find definitive documentation to get out of this trap?

HenrikBechmann
  • 579
  • 2
  • 5
  • 19

1 Answers1

0

Answer: Mostly a matter of updating .babelrc

{
  "presets": [
    "@babel/env",
    "@babel/react"
  ]
}

and of course updating modules

tip: try npx update-babel

HenrikBechmann
  • 579
  • 2
  • 5
  • 19