Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot destructure property node of 'undefined' or 'null' #7

Open
capaj opened this issue Jul 8, 2018 · 0 comments
Open

Comments

@capaj
Copy link

capaj commented Jul 8, 2018

Bug

  • babel-plugin-console version: 0.2.1
  • node version: 10
  • npm (or yarn) version: 6

Relevant code or config

I tried putting the console.scope anywhere

What you did:
I think this plugin doesn't work with babel 7 because I used this plugin with babel
"babel-core": "^7.0.0-bridge.0",
"@babel/core": "^7.0.0-beta.52",

What happened (please provide anything you think will help):

Module build failed (from ./node_modules/babel-loader/lib/index.js):
TypeError: Cannot destructure property `node` of 'undefined' or 'null'.
    at getCurriedFunctionSignature (/home/capaj/git_projects/looop/project-alpha/node_modules/babel-plugin-console/dist/scope/signatures/index.js:34:46)
    at exports.default (/home/capaj/git_projects/looop/project-alpha/node_modules/babel-plugin-console/dist/scope/signatures/index.js:10:12)
    at traverseFunctions (/home/capaj/git_projects/looop/project-alpha/node_modules/babel-plugin-console/dist/scope/index.js:115:41)
    at exports.default (/home/capaj/git_projects/looop/project-alpha/node_modules/babel-plugin-console/dist/scope/index.js:28:17)
    at PluginPass.CallExpression (/home/capaj/git_projects/looop/project-alpha/node_modules/babel-plugin-console/dist/index.js:37:43)
    at newFn (/home/capaj/git_projects/looop/project-alpha/node_modules/@babel/core/node_modules/@babel/traverse/lib/visitors.js:193:21)
    at NodePath._call (/home/capaj/git_projects/looop/project-alpha/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/context.js:53:20)
    at NodePath.call (/home/capaj/git_projects/looop/project-alpha/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/context.js:40:17)
    at NodePath.visit (/home/capaj/git_projects/looop/project-alpha/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/context.js:88:12)
    at TraversalContext.visitQueue (/home/capaj/git_projects/looop/project-alpha/node_modules/@babel/core/node_modules/@babel/traverse/lib/context.js:118:16)
    at TraversalContext.visitSingle (/home/capaj/git_projects/looop/project-alpha/node_modules/@babel/core/node_modules/@babel/traverse/lib/context.js:90:19)
    at TraversalContext.visit (/home/capaj/git_projects/looop/project-alpha/node_modules/@babel/core/node_modules/@babel/traverse/lib/context.js:146:19)
    at Function.traverse.node (/home/capaj/git_projects/looop/project-alpha/node_modules/@babel/core/node_modules/@babel/traverse/lib/index.js:94:17)
    at NodePath.visit (/home/capaj/git_projects/looop/project-alpha/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/context.js:95:18)
    at TraversalContext.visitQueue (/home/capaj/git_projects/looop/project-alpha/node_modules/@babel/core/node_modules/@babel/traverse/lib/context.js:118:16)
    at TraversalContext.visitMultiple (/home/capaj/git_projects/looop/project-alpha/node_modules/@babel/core/node_modules/@babel/traverse/lib/context.js:85:17)

Reproduction repository (if possible):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant