react-tags-input icon indicating copy to clipboard operation
react-tags-input copied to clipboard

parsing error

Open mrlaunch opened this issue 6 years ago • 6 comments

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) => (

| ); |

mrlaunch avatar Jun 13 '19 00:06 mrlaunch

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.

albertorestifo avatar Jun 13 '19 08:06 albertorestifo

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

mrlaunch avatar Jun 13 '19 22:06 mrlaunch

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?

IvanVishnevskiy avatar Mar 21 '20 08:03 IvanVishnevskiy

@IvanVishnevskiy a PR is welcome, sure!

fjaguero avatar Mar 23 '20 12:03 fjaguero

I am facing the same issue. Any update?

Kiranprakas avatar Apr 27 '20 15:04 Kiranprakas

Getting this same issue.....

ishaan-puniani avatar Sep 30 '20 21:09 ishaan-puniani