1
import credentials from '../config/credentials'
^^^^^^
SyntaxError: Unexpected reserved word

Yesterday babel-node was working fine. Today, in my testing directory, it no longer works. Oddly enough, it runs my app which uses ES6 no problem.

Version: 5.6.14

No idea what's causing this to happen.

Anthony
  • 13,434
  • 14
  • 60
  • 80

1 Answers1

1

I had the following .babelrc file

{
  "stage": 0,
  "ignore": [
    "node_modules",
    "bower_components",
    "testing",
    "test"
  ]
}

Which disallowed babel-node from working in the testing directory.

Anthony
  • 13,434
  • 14
  • 60
  • 80