Giter VIP home page Giter VIP logo

Comments (3)

gojomo avatar gojomo commented on June 16, 2024

Doesn't seem related to use of in-browser JSXTransformer – I get the same error with precompiled JSX: http://jsfiddle.net/5vjqabv3/325/.

from react-magic-move.

gojomo avatar gojomo commented on June 16, 2024

At StackOverflow, someone pointing out another case where this error occurred, where the cause was multiple-definition of React classes, and that dist/react-magic-move.js repeats definitions from the standard react.js (and/or react-with-addons.js).

Is that intentional override/redefinition, and if so what's the right way to use the 'dist' form of react-magic-move? It seems not to mix well as a simple addition, loaded afterward.

from react-magic-move.

beeant avatar beeant commented on June 16, 2024

I got the same problem using the dist

var MagicMove = require('react-magic-move/dist/react-magic-move.min'); 

but when I use webpack with jsx-loader?harmony transformer, this problem is gone.

var MagicMove = require('react-magic-move'); 

and here are my webpack loaders for .js (I'm using react-jade for all of my React components)

[
  { test: /\.js$/, exclude: /node_modules/, loader: "transform?react-jade" },
  { test: /\.js$/, exclude: /public/, loader: 'jsx-loader?harmony' }
]

from react-magic-move.

Related Issues (12)

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.