Giter VIP home page Giter VIP logo

Comments (9)

nkbt avatar nkbt commented on May 1, 2024

Do you use beta version 2.0.0?

npm install --save-dev babel-plugin-react-transform@beta

Current stable 1.1 is babel5 and not babel6 compatible.

from babel-plugin-react-transform.

kpdecker avatar kpdecker commented on May 1, 2024

I am seeing the same, using

 ├── [email protected]

from babel-plugin-react-transform.

kpdecker avatar kpdecker commented on May 1, 2024

For anyone who runs upon this in the future:
I had to remove the webpack configuration parameters and move this to the babel config proper. After doing this, everything appears to be working again.
kpdecker/linoleum-webpack@e4f9e31

from babel-plugin-react-transform.

nkbt avatar nkbt commented on May 1, 2024

Ah I'm using .babelrc so could not reproduce.
Also when you pass params to the loader in webpack it is ok to JSON.stringify it. Try it if you keen, that might work.

from babel-plugin-react-transform.

carloscuatin avatar carloscuatin commented on May 1, 2024

yes, i am use beta version 2.0.0

from babel-plugin-react-transform.

jamiebuilds avatar jamiebuilds commented on May 1, 2024

Your .babelrc file has an invalid option extra. This option was taken away in Babel 6 in favor of plugin specific options.

from babel-plugin-react-transform.

carloscuatin avatar carloscuatin commented on May 1, 2024

how to config webpack with babel-plugin-react-transform, in app with server side renderin ?

from babel-plugin-react-transform.

abrahamhurtado avatar abrahamhurtado commented on May 1, 2024

In your webpack config, when you specify the babel-loader object, add a query property, which will contain the plugin configuration.

It should be something like this.

from babel-plugin-react-transform.

carloscuatin avatar carloscuatin commented on May 1, 2024

thanks @arhcstolen (y)

from babel-plugin-react-transform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.