Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Hi, thanks.

The difference with the guide is that you are using a .mjs config. You need to use import

import { remarkCodeHike } from "@code-hike/mdx"

(note that it's import from and not equals, like in your example).

The theme may be trickier to import because it's a json file. I think this should work with next.js:

import theme from "shiki/themes/nord.json" assert { type: "json" }

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@SwiftedMind
Comment options

@pomber
Comment options

@SwiftedMind
Comment options

@pomber
Comment options

@SwiftedMind
Comment options

Answer selected by SwiftedMind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants