speedskater / babel-plugin-rewire

A babel plugin adding the ability to rewire module dependencies. This enables to mock modules for testing purposes.
843 stars 90 forks source link

Babel issue #196

Closed jonashartwig closed 7 years ago

jonashartwig commented 7 years ago

Hi,

i get an error since yesterday with version 1.0.0 and 1.1.0 which worked before:

Property id of FunctionDeclaration expected node to be of a type ["Identifier"] but instead got "CallExpression"

it seems to be something related to babel and AST expression.

here are my versions:

"babel-cli": "^6.9.0",
"babel-eslint": "^7.1.1",
"babel-loader": "^7.0.0",
"babel-plugin-rewire": "^1.0.0",
"babel-polyfill": "^6.16.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.16.0",
"babel-preset-stage-1": "^6.5.0",
jonashartwig commented 7 years ago

ok, very simple. I had 2 function with the same name in my js file. now it works. i guess its a babel issue.