Skip to content

Can I import *.json to *.mdx file in nextjs #2206

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

You must be logged in to vote

Needs more info: this is way too short.

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 2 replies

Comment options

You must be logged in to vote
2 replies
@tienlx97
Comment options

@ChristianMurphy
Comment options

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
👀 no/external This makes more sense somewhere else
3 participants