react-quiz icon indicating copy to clipboard operation
react-quiz copied to clipboard

Module parse failed: unexpected token (51:26)

Open ZohairAbbas opened this issue 4 years ago • 3 comments

Since I add below code in QuestionCard.styles.ts image

I am getting this error: image

Not sure what to do to fix this

ZohairAbbas avatar Sep 04 '20 13:09 ZohairAbbas

Really hard to tell by looking at this. I suggest you compare your code against the working finished App code. I can't even see the line numbers in the screenshot. But it says that there's something wrong with the code on line 51 for you.

Den fre 4 sep. 2020 kl 15:03 skrev ZohairAbbas [email protected]:

Since I add below code in QuestionCard.styles.ts [image: image] https://user-images.githubusercontent.com/49277527/92242131-c5607100-eed8-11ea-9272-b259088f7aa7.png

I am getting this error: [image: image] https://user-images.githubusercontent.com/49277527/92242173-d7daaa80-eed8-11ea-8811-2a1e906640f4.png

Not sure what to do to fix this

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/weibenfalk/react-quiz/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVRL3WVR2VF4MDEYASM3RLSEDQSFANCNFSM4QYJ6HDQ .

weibenfalk avatar Sep 04 '20 13:09 weibenfalk

I re-cloned your repository and tried to run that but still, it is showing me the same error. image

this is my code for QuestionCard.tsx image image

ZohairAbbas avatar Sep 04 '20 15:09 ZohairAbbas

Really strange .. I just tried it out here and it's working like a charm. So you mean that you can't even run the finished version that is not modified by you? Must be something on your system then that is interfering with it somehow. I can't reproduce the error here.

weibenfalk avatar Sep 04 '20 15:09 weibenfalk