djm / remark-shortcodes

A custom Markdown syntax parser for remark that adds support for shortcodes.
MIT License
45 stars 7 forks source link

Minified React error #418 when using remark-shortcodes in React application #29

Closed dineshr5 closed 1 month ago

dineshr5 commented 1 month ago

I am encountering a "Minified React error #418" when using the remark-shortcodes package in my React application. This error appears when rendering articles that include markdown processed by the remark-shortcodes package. The error message suggests a problem with how React components are being used or imported, and it points to a compatibility issue with remark-shortcodes.

Expected Behavior: Markdown content with shortcodes should be rendered correctly without causing any React errors.

Actual Behavior: The application throws a "Minified React error #418" in the console, and the markdown content does not render as expected.

Additional Information:

Error Details:

Error: Minified React error #418; visit https://reactjs.org/docs/error-decoder.html?invariant=418 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

djm commented 1 month ago

This package is long dead @dineshr5, I'd recommend a different one (see README).

dineshr5 commented 1 month ago

@djm I have used 'remark-directive' as mentioned in README but the scenarios thats comes under "{{ }}" open and closed blocks is not supported by remark-directives. any thoughts?

Screenshot 2024-08-07 at 7 17 14 PM
djm commented 1 month ago

Sorry, I’m not familiar with the other package - you’re best off asking them! Thanks.