Skip to content

Plugin causing spread operator to fail in jsx #7

Closed
@ksrb

Description

@ksrb

.babelrc

{
  "presets":[
    "react-app"
  ],
  "plugins":[
    [
      "react-css-modules",
      {
        "generateScopedName":"[path]___[name]__[local]___[hash:base64:5]"
      }
    ]
  ]
}

index.js

var test = <div {...something}></div>;

package.json
Minimal package.json can be provided if necessary 'reference' here.

Error

Module build failed: TypeError: xxx: Cannot read property 'name' of undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions