lang-ai / react-tags-input

[Not Actively Maintained] An input control that handles tags interaction with copy-paste and custom type support.
26 stars 6 forks source link

parsing error #12

Open mrlaunch opened 5 years ago

mrlaunch commented 5 years ago

I installed this module and run this command npm start and error occurs

./node_modules/@sentisis/react-tags-input/src/TagsInput.jsx 82:2 Module parse failed: Unexpected token (82:2) You may need an appropriate loader to handle this file type. | | const tagRenderer = ({ value, special }, onClick) => (

);
albertorestifo commented 5 years ago

Are you using create-react-app?

The issue is most likely that your packager is not transpiling node_modules dependencies. The most recent versions of create-react-app are all transpiling node_modules as well.

mrlaunch commented 5 years ago

Yes I use create-react-app and I tried for several times. But it's same always

IvanVishnevskiy commented 4 years ago

I am experiencing the same exact error with the latest create-react-app ("react-scripts": "3.4.1") Am I wrong that it is generally presented as an antipattern to not to compile your npm modules?

Like in this stackoverflow question I would've loved to use your library but I can't :( I will probably clone this repo and prebuild it. Should I PR if I will do this?

fjaguero commented 4 years ago

@IvanVishnevskiy a PR is welcome, sure!

Kiranprakas commented 4 years ago

I am facing the same issue. Any update?

ishaan-puniani commented 4 years ago

Getting this same issue.....