Closed
Description
On a new Next.js app, when you do import { remarkCodeHike, recmaCodeHike } from "codehike/mdx"
typescript complains:
Cannot find module 'codehike/mdx' or its corresponding type declarations.
There are types at 'node_modules/codehike/dist/mdx.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.ts(2307)
To fix it you need to change moduleResolution
to bundler
in the tsconfig.json
. Would be nice to not have to do that.
Metadata
Metadata
Assignees
Labels
No labels