Skip to content

Import json to mdx file #2207

Answered by ChristianMurphy
tienlx97 asked this question in Q&A
Discussion options

You must be logged in to vote

This looks like a duplicate of https://github.com/orgs/mdx-js/discussions/2206 ?

And the answer is the same:

Likely not though: you can't import json yet in ESM. In the future you could use import assertions, but they're not supported in most places yet.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants