Giter Club home page Giter Club logo

Comments (3)

charleschenster avatar charleschenster commented on September 7, 2024

+1

I'm seeing this error also. Although I'm not using gulp and using browserify/watchify directly. Does that make a difference?

Here's my package.json file:

{
  ...
  "dependencies": {
    ...
    "react": "^0.14.7",
    "react-dropzone-component": "^0.9.0",
    ...
  },
  "devDependencies": {
    ...
    "browserify-shim": "^3.8.3",
    ...
  },
  "scripts": {
    "start": "watchify -o web/static/js/sample.js -v -d web/static/js/Sample.app.js",
    "build_deps": "browserify . --deps",
    "build": "browserify web/static/js/Sample.app.js -t [envify --NODE_ENV production] | uglifyjs -cm > web/static/js/sample.js",
  },
  "browserify": {
    "transform": [
      "reactify",
      "envify",
      "babelify"
    ]
  }

from react-dropzone-component.

felixrieseberg avatar felixrieseberg commented on September 7, 2024

Hey, thanks for reporting! In order to not package React with the component, we need React to be available as a global object. So, for now, the solution here is to ensure that React is available globally.

If any of you have an idea on how we can both not have React inside the component, but also ensure that it's found if it isn't global, I'd love to find a solution 👍

from react-dropzone-component.

cgodkin avatar cgodkin commented on September 7, 2024

FWIW, I was having this problem too but after you fixed Issue #58, this problem is gone too. Thanks!

from react-dropzone-component.

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.