#Getting Error in ReactMarkdown

16 messages · Page 1 of 1 (latest)

dapper veldt
#

I wasted so much time on this, and eventually decided to check what Bob did to figure out what I was doing wrong. But when I submitted the challenge, it actually got accepted. Bob did the same thing too, but I'm still getting this error:
SyntaxError: The requested module 'decode-named-character-reference' does not provide an export named 'decodeNamedCharacterReference'
I'm not sure what I'm doing wrong. Any ideas?

jolly geode
#

it is trying to import decodeNamedCharacterReference, but the package it’s depending on doesn’t export it properly.

dapper veldt
#

Hi @jolly geode, Yes the issue is related to decode-named-character-reference but since I’m not manually importing it myself I’m not sure how to tackle this error. I’m just importing react-markdown

jolly geode
#

Can you please share your code is it on GitHub ?

#

I am sure it definitely something with markdown

dapper veldt
#

Hey @jolly geode , sorry for the late reply. I was following the course on Scrimba, so I didn’t try to build the project locally on my system and put it on Github at first. Because of the error I was getting, I decided to start the project from scratch on my system, and it’s running fine without any issues.

I think the problem might be with Scrimba or maybe something I unknowingly changed in the code. One thing to mention—when I tried running Bob’s code right after he finished the project and gave the demo, I got the same error

jolly geode
#

You don’t have start from scratch just download as zip and follow instructions in ReadMe file

#

You will be able to download any projects

dapper veldt
#

Yes, we can download the zip file from Scrimba, but because of the bug, I thought it would be a good idea to try building it on my own instead of just downloading the already finished project file and following along with Bob’s instructions 💪

dark lance
#

I got the same issue when I look at the final scrims of Chef Claud app. Believe it or not , it used to work... I finished the Learn React session months ago, worked fine with both Hugging face and Claude. ChatGPT said we need to downgrade to [email protected].. The problem is no idea how to downgrade on Scrimba V2..

dark lance
#

naaa . the downgrade did not work.

dapper veldt
magic pawn
dapper veldt
#

Hi @magic pawn , I am unable to rename the dependency, on right click I am getting default context menu from chrome

dark lance