Closed scottwhudson closed 5 years ago
The problem is probably your webpack config. The issue is similar to https://github.com/syntax-tree/hast-util-sanitize/pull/1#issuecomment-238027874. Could you try that, and see if that works?
Yep, adding the json plugin to my rollup config solved the issue. I totally wouldn't have guessed that.
Thank for the tip!
Yep, adding the json plugin to my rollup config solved the issue. I totally wouldn't have guessed that.
Thank for the tip!
Hi Scott. What should I put in rollup config exactlty?
Nevermind, I figured it out by npm installing @rollup/plugin-json and then adding that to my rollup config. As you mentioned. Thanks for the help.
I'm building a React library using
create-react-library
, and I'm getting an error that tracks back torefractor
when trying to install a package (react-syntax-highlighter
) that depends onrefractor
.My error looks like this:
I've tried uninstalling, deleting
node_modules
and reinstalling the package twice with no success.I've consulted all of my usual resources to resolve this without any success. Am I missing something here?