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?
#Getting Error in ReactMarkdown
16 messages · Page 1 of 1 (latest)
it is trying to import decodeNamedCharacterReference, but the package it’s depending on doesn’t export it properly.
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
Can you please share your code is it on GitHub ?
I am sure it definitely something with markdown
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
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
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 💪
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..
naaa . the downgrade did not work.
Thanks for the update, I tried it locally and it is working for me. Have you tried it on your own machine?
It worked fine when I disabled the markdown entirely. To downgrade it, right click on the dependency and rename it with the version you need to downgrade it to
Hi @magic pawn , I am unable to rename the dependency, on right click I am getting default context menu from chrome
Yeah, I did that and it worked without the Markdown. Also I tried to upgrade all these dependency files, REACT 19.1 and Markdown 10 something. With that setup, It will render properly but can't work when I click on the get recipe button...