reactjs-percentage-circle icon indicating copy to clipboard operation
reactjs-percentage-circle copied to clipboard

Module parse failed

Open xbreid opened this issue 7 years ago • 9 comments

Hello, I installed your component and was given the following compile error. I know you are using a style-loader and css-loader. Do I need to install these to my package as well?

`Failed to compile.

Error in ./~/reactjs-percentage-circle/src/index.js Module parse failed: /Users/Bar/Desktop/main/app/node_modules/reactjs-percentage-circle/src/index.js Unexpected token (30:6) You may need an appropriate loader to handle this file type. SyntaxError: Unexpected token (30:6) @ ./src/views/dashboard/view-content.js 28:31-67`

xbreid avatar Apr 10 '17 01:04 xbreid

+1 facing the same issue. Any update?

rbotla avatar May 25 '17 03:05 rbotla

@rbotla Had to push through deadlines so I gave up on this one for now, I can give you another link to a similar percentage-circle if you need it.

xbreid avatar May 25 '17 14:05 xbreid

Thanks for the quick response. I'm using material ui circular progress component. I liked the options you provided. Let me know if you have any suggestions on the alternate solutions.

On Thursday, May 25, 2017, Brandon Reid [email protected] wrote:

@rbotla https://github.com/rbotla Had to push through deadlines so I gave up on this one for now, I can give you another link to a similar percentage-circle if you need it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JackPu/reactjs-percentage-circle/issues/1#issuecomment-304032141, or mute the thread https://github.com/notifications/unsubscribe-auth/AHtAR4TGWPg0dRyk7NO6vdZTCrzu-dgrks5r9ZdJgaJpZM4M4OSd .

rbotla avatar May 25 '17 17:05 rbotla

The styles const is unused, so you can just remove it. There are a billion ways to tackle css organization and tracking dependencies, the author used one that I also don't have experience with.

Anyway, remove it and you're good as this codesandbox shows

olsonpm avatar Jul 26 '17 18:07 olsonpm

Any update on this matter ? I tried correcting the issue but without any luck...

Sideness avatar Nov 03 '17 13:11 Sideness

did you check my code snadbox link?

olsonpm avatar Nov 03 '17 13:11 olsonpm

Well, what a fool I am. I was trying to fix the module itself. I didn't understand I was supposed to take your sandbox and create a module of my own. It works ! Thank you :)

Sideness avatar Nov 03 '17 13:11 Sideness

glad you got it working :) . we're all fools for developing for the web haha. it's mentally straining!

olsonpm avatar Nov 03 '17 13:11 olsonpm

I have the same error. I used the material UI Circular Progress Component <CircularProgressWithLabel value={progress} />

https://material-ui.com/components/progress/#circular-with-label

EduardoUstarez avatar Aug 12 '20 13:08 EduardoUstarez