Comments (5)
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.
"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.
Thank you, there might be some problem with the standard UMD that need to be fixed.
from react-tagsinput.
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.
Ok, thank you and good luck with your electron app 👍
from react-tagsinput.
Related Issues (20)
- AutoSuggest adding tag then text below HOT 1
- Please add the info for pasteSplit
- How do I add icon at the beginning of the component? HOT 3
- Mobile devices cannot add tags - enter does not submit tags but instead moves to next form field HOT 1
- dynamic width
- Can we add email validation so It only allow to enter email while making tags HOT 1
- Tag creation does not work on mobile HOT 1
- onpaste ? HOT 2
- How to switch the cursor among multiple tags
- How it works when pass empty array on start?
- render html instance
- peer dependency conflict with react 18.x HOT 4
- [Bug][3.20.0] Empty tag added on blur HOT 1
- Can't remove a tag when input filed has overflow HOT 2
- 'define' is not defined
- bug: validate functiob does not exists anymore but still displayed in the readme file
- Passing objects as tags does not work because of trimming HOT 3
- React native Text input native props are not working like onChange,onchageTExt and also value prop
- Why there are no id and name attributes?
- shift+enter not working and check event
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-tagsinput.