Cannot read property 'name' of undefined
See original GitHub issueHi, Using 4.2.0 with babel-core@6.26.0 gave us following issue on our webpack build. Noticed when I do clean npm install yesterday. Using 4.1.0 won’t cause any issue. Any insight on this…?
webpack build error ` ERROR in ./src/utils/xxxx.js Module build failed: TypeError: /Users/myuser/myproject/src/utils/myreactcomponent.js: Cannot read property ‘name’ of undefined at DestructuringTransformer.pushObjectProperty (/Users/myuser/myproject/node_modules/babel-plugin-extensible-destructuring/lib/index.js:209:96) at DestructuringTransformer.pushObjectPattern (/Users/myuser/myproject/node_modules/babel-plugin-extensible-destructuring/lib/index.js:251:18) at DestructuringTransformer.push (/Users/myuser/myproject/node_modules/babel-plugin-extensible-destructuring/lib/index.js:156:16) at DestructuringTransformer.init (/Users/myuser/myproject/node_modules/babel-plugin-extensible-destructuring/lib/index.js:417:14) at PluginPass.VariableDeclaration (/Users/myuser/myproject/node_modules/babel-plugin-extensible-destructuring/lib/index.js:639:27) at newFn (/Users/myuser/myproject/node_modules/babel-traverse/lib/visitors.js:276:21) at NodePath._call (/Users/myuser/myproject/node_modules/babel-traverse/lib/path/context.js:76:18) at NodePath.call (/Users/myuser/myproject/node_modules/babel-traverse/lib/path/context.js:48:17) at NodePath.visit (/Users/myuser/myproject/node_modules/babel-traverse/lib/path/context.js:105:12) at TraversalContext.visitQueue (/Users/myuser/myproject/node_modules/babel-traverse/lib/context.js:150:16) at TraversalContext.visitMultiple (/Users/myuser/myproject/node_modules/babel-traverse/lib/context.js:103:17) at TraversalContext.visit (/Users/myuser/myproject/node_modules/babel-traverse/lib/context.js:190:19) at Function.traverse.node (/Users/myuser/myproject/node_modules/babel-traverse/lib/index.js:114:17) at NodePath.visit (/Users/myuser/myproject/node_modules/babel-traverse/lib/path/context.js:115:19) at TraversalContext.visitQueue (/Users/myuser/myproject/node_modules/babel-traverse/lib/context.js:150:16) at TraversalContext.visitSingle (/Users/myuser/myproject/node_modules/babel-traverse/lib/context.js:108:19) at TraversalContext.visit (/Users/myuser/myproject/node_modules/babel-traverse/lib/context.js:192:19) at Function.traverse.node (/Users/myuser/myproject/node_modules/babel-traverse/lib/index.js:114:17) …
`
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
@palnes Workes like a charm. Thank you.
This should probably be closed. 😃