JackPu / reactjs-percentage-circle

🐟 a react component to show percentage circle
http://events.jackpu.com/reactjs-percentage-circle/
MIT License
22 stars 9 forks source link

Module parse failed #1

Open xbreid opened 7 years ago

xbreid commented 7 years ago

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`

rbotla commented 7 years ago

+1 facing the same issue. Any update?

xbreid commented 7 years ago

@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.

rbotla commented 7 years ago

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 notifications@github.com 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 .

olsonpm commented 7 years ago

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

Sideness commented 7 years ago

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

olsonpm commented 7 years ago

did you check my code snadbox link?

Sideness commented 7 years ago

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 :)

olsonpm commented 7 years ago

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

EduardoUstarez commented 4 years ago

I have the same error. I used the material UI Circular Progress Component

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