Skip to content

problems working w react + babel #17

@geddski

Description

@geddski

I'm trying to get this to compile when using react + babel + webpack. I ran the create-react-app starter tool, then npm run eject so I could modify the config.

Then changing my webpack config like so:

loaders: [
   {
        test: /\.js$/,
        include: paths.appSrc,
        loaders: [
          'babel?' + JSON.stringify(require('./babel.dev')),
          'cssx-loader'
        ]
  }
]

But the compiler fails:
image

Any ideas I could try?

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