Replies: 4 comments
-
UPD: It seems that parcel tries to be smart and remove "unused" variables from the code or something (hence, passing |
Beta Was this translation helpful? Give feedback.
-
Came across the exact same issue. Prod build works fine but dev is not working at expected |
Beta Was this translation helpful? Give feedback.
-
I tried to tweak the code around the error location, found that it looks like parcel mishandles the Try this workaround: Install import 'property-information'; // Just import
const Component = () => <ReactMarkdown>...</ReactMarkdown>; You can import before or after the react-markdown import, doesn't matter. Feel free to add |
Beta Was this translation helpful? Give feedback.
-
If this is still a problem, please open an issue with a complete reproduction. |
Beta Was this translation helpful? Give feedback.
-
Original thread:
remarkjs/react-markdown#747
It seems that for whatever reason (see thread above) parcel does something weird in dev build so the
react-markdown
lib stops working when using links. Not sure what exactly triggers the issue, but prod build works fine..parcelrc
Beta Was this translation helpful? Give feedback.
All reactions