Skip to content

How to solve SyntaxError: Cannot use import statement outside a module isssuse #93

Discussion options

You must be logged in to vote

react-markdown, rehype-raw, and hast-util-raw are all ES Modules.
This works out of the box with Node and many build tools, a few build tools need to be configured, it looks like the build tool you are using may need to be configured.
This ESM guide offers configuration suggestions for several build tools.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sachin-chaurasiya
Comment options

Answer selected by Sachin-chaurasiya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants