The Wayback Machine - https://web.archive.org/web/20200705022054/https://github.com/FormidableLabs/rapscallion/issues/74
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

babel-plugin-server: spread attributes #74

Open
shuhei opened this issue Apr 12, 2017 · 3 comments
Open

babel-plugin-server: spread attributes #74

shuhei opened this issue Apr 12, 2017 · 3 comments
Labels
bug

Comments

@shuhei
Copy link

@shuhei shuhei commented Apr 12, 2017

babel-plugin-server throws an error on spread attributes.

A minimum test case:

$ echo '<Foo {...props} />;' | ./node_modules/.bin/babel --plugins ./src/transform/server
TypeError: unknown: Cannot read property 'name' of undefined
    at objExpr.properties.forEach.property (/Users/shuhei/work/js/rapscallion/src/transform/server.js:198:21)
    at Array.forEach (native)
    at objectExpressionToObject (/Users/shuhei/work/js/rapscallion/src/transform/server.js:197:22)
    at PluginPass.exit (/Users/shuhei/work/js/rapscallion/src/transform/server.js:27:21)
    at newFn (/Users/shuhei/work/js/rapscallion/node_modules/babel-traverse/lib/visitors.js:276:21)
    at NodePath._call (/Users/shuhei/work/js/rapscallion/node_modules/babel-traverse/lib/path/context.js:76:18)
    at NodePath.call (/Users/shuhei/work/js/rapscallion/node_modules/babel-traverse/lib/path/context.js:48:17)
    at NodePath.visit (/Users/shuhei/work/js/rapscallion/node_modules/babel-traverse/lib/path/context.js:117:8)
    at TraversalContext.visitQueue (/Users/shuhei/work/js/rapscallion/node_modules/babel-traverse/lib/context.js:150:16)
    at TraversalContext.visitSingle (/Users/shuhei/work/js/rapscallion/node_modules/babel-traverse/lib/context.js:108:19)
@veiico
Copy link

@veiico veiico commented Jun 23, 2017

would be cool to have this feature working (having the same behavior)

@divmain
Copy link
Contributor

@divmain divmain commented Jun 30, 2017

Alright, this is next in my queue.

@divmain divmain added the bug label Jun 30, 2017
@dorian-marchal
Copy link

@dorian-marchal dorian-marchal commented Aug 9, 2017

Any news on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
You can’t perform that action at this time.