The code doesn’t work for me; I get an error “SyntaxError: The requested module ‘decode-named-character-reference’ does not provide an export named ‘decodeNamedCharacterReference’”
it it a problem related to the markdown plugin? I am trying the same code that works in the lesson but doesn’t work for me
@molokoid Do you have a scrim link you could share so I can check it out? Or the name of which scrim you’re running into this issue on? I’ll check it out
Yup, I found it. It appears react-markdown@9 suddenly has a problem with using the release-candidate version of react@19 (react@rc), but only in Scrimba. I’ll forward this on to the dev team to see if we can get a resolution.
Upgrading the dependency to react-markdown@10.1.0 fixes this syntax error issue. However, upon attempting to generate the recipe, a new error appears.
!
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of `ClaudeRecipe`.
▲
An error occurred in the <section> component. Consider adding an error boundary to your tree to customize error handling behavior. Visit https://react.dev/link/error-boundaries to learn more about error boundaries.
I attempted to upgrade all dependencies and re-reread the docs, but to no avail…
I am also having this same problem and in trying to fix it also reproduced the error @jarprod reported above. Need to fix it please guys! Dependencies listed here:
Over on the discord server, user Daniel had this answer: This appears to be a problem with react-markdown and Scrimba. Until there is a fix, you can try using marked-react instead. To do this:
In ClaudeRecipe.jsx change import ReactMarkdown from "react-markdown" to import ReactMarkdown from "marked-react",
Add marked-react to the list of dependencies in the left panel