react-core-image-upload icon indicating copy to clipboard operation
react-core-image-upload copied to clipboard

Need An Appropriate Loader Error

Open notconfusing opened this issue 9 years ago • 3 comments

Hi, I've tried to install the npm module in 2 different environments and both times I get the error:

Failed to compile.

Error in ./~/react-core-image-upload/src/react-core-image-upload.js
Module parse failed: /media/notconfusing/9d9b45fc-55f7-428c-a228-1c4c4a1b728c/home/notconfusing/workspace/module-3-group-project-jungle/client/node_modules/react-core-image-upload/src/react-core-image-upload.js Unexpected token (39:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (39:6)
 @ ./src/Upload.js 18:28-62

It seems that react is trying to load it as pure js and gets hungup on the jsx parts. Normally I don't have to specify the loader for files like this so I wonder why its happening on this project.

notconfusing avatar Nov 08 '16 20:11 notconfusing

@notconfusing if you want to use it in an script tag ,may you should only use the react-core-image-upload.js in the project.

JackPu avatar Nov 09 '16 11:11 JackPu

still have the issue, webpack error. Any solution?

michaellin-seekers avatar May 19 '17 03:05 michaellin-seekers

@michaellin-seekers You can use the new version we have built one via webpack.

JackPu avatar May 24 '17 02:05 JackPu