Hi I m trying to import…
Hi! I’m trying to import a markdown file into a React Library. I was having trouble with that, so I tried importing the markdown file into a Node Library.
Importing into a Node Library worked, but when I try and then import the variables of the markdown files that the Node Library exports into the React Library, it doesn’t work.
I get this error:
Error during bundle: Error: Unexpected token (Note that you need @rollup/plugin-json to import JSON files)
Bundle failed.
Does anyone have a quick fix for this or a preferred way of doing MD in typescript react projects?
Responses:
Okay, this might be related
https://github.com/rollup/rollup-plugin-json/issues/6
Does anyone know how to make this change without ejecting?