react-core-image-upload
react-core-image-upload copied to clipboard
Need An Appropriate Loader Error
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 if you want to use it in an script tag ,may you should only use the react-core-image-upload.js in the project.
still have the issue, webpack error. Any solution?
@michaellin-seekers You can use the new version we have built one via webpack.