-
Notifications
You must be signed in to change notification settings - Fork 54
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
[v0.3.0] cannot read property 'name' of undefined #58
Comments
I'm also seeing this on a number of modules where greenkeeper has tried to update the plugin. Separately, it seems like v0.3.0 won't transpile |
My understanding is that they meant it wouldn't transpile Moreover, that line has been in the README since before v0.3.0. |
I'm having this issue too in Macil/react-save-refs#9. You can reproduce the issue by checking out the "greenkeeper/babel-plugin-add-module-exports-0.3.0" branch of react-save-refs, and then run |
It was a missing check of simple AssignmentExpression. The following will fail. let foo
foo = "default-entry" // TypeError: index.js: Cannot read property 'name' of undefined
export default foo On line 10 of the plugin, access to the undefined property of AST of 2nd line. this issue is fixed soon. |
Applied it as |
@59naga FYI, you can reduce that code a bit if you want, to
|
Nice, I'll apply it |
.babelrc
:The text was updated successfully, but these errors were encountered: