Giter Site home page Giter Site logo

Comments (5)

olahol avatar olahol commented on May 18, 2024

Which versions of React and react-tagsinput are you using? I changed React to a peer dependency recently to fix the problem with two versions of React loading.

from react-tagsinput.

christian-schulze avatar christian-schulze commented on May 18, 2024

"react": "0.13.3"
"react-tagsinput": "1.4.1"

I'm putting together a minimal Electron app to reproduce, will post shortly.

from react-tagsinput.

olahol avatar olahol commented on May 18, 2024

Thank you, there might be some problem with the standard UMD that need to be fixed.

from react-tagsinput.

christian-schulze avatar christian-schulze commented on May 18, 2024

After much pulling of hair, I've found this not to be a problem with your component.

My folder structure looks something like this:

root
|-- node_modules
|---- react
|-- app
|---- js
|------ index.js
|------ components
|-------- tag_input.js
|---- node_modules
|------ react
|------ react-tagsinput

The React constant is being required in app/js/index.js and app/js/components/tag_input.js. Unfortunately app/js/index.js is pulling in react from node_modules/react while app/js/components/tag_input.js is pulling it from app/node_modules/react.

I'm unsure why this was happening, but I've gotten around it by specifying a relative path in app/js/index.js like this:

let React = require('../node_modules/react');

from react-tagsinput.

olahol avatar olahol commented on May 18, 2024

Ok, thank you and good luck with your electron app 👍

from react-tagsinput.

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.