Import packages inside mdx string #2111
Answered
by
wooorm
Roberto4091
asked this question in
Q&A
-
im consume mdx from api. this is my serializer component to convert mdx string to valid mdx
and this is a mdx string
but when use, have a error when import rebass module can you help me find the problem? Environment data:
Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Aug 24, 2022
Replies: 1 comment
-
This error is because you can’t just run Either:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Roberto4091
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This error is because you can’t just run
import('rebass')
in a browser either. Try pasting that in your console, you’ll get a similar error.Either:
rebass
,./my-bundles/rebass.js