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)
Bug
babel-plugin-console
version: 0.2.1node
version: 10npm
(oryarn
) version: 6Relevant code or config
I tried putting the
console.scope
anywhereWhat 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):
Reproduction repository (if possible):