I'm struggling to import novel/extensions due to some TS error. My Next.js project has:
"module": "esnext",
"moduleResolution": "node",
Which is standard and hasn't caused any issue with other libraries. Specifically for novel/extensions, I get this:
Cannot find module 'novel/extensions' or its corresponding type declarations.
There are types at '/Users/arielweinberger/Development/academia-helper/node_modules/novel/dist/extensions.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.ts(2307)
I assume this is related to using exports in package.json?
Provide environment information
Describe the bug
I'm struggling to import novel/extensions due to some TS error. My Next.js project has:
Which is standard and hasn't caused any issue with other libraries. Specifically for novel/extensions, I get this:
I assume this is related to using exports in package.json?
Link to reproduction
-
To reproduce
Set up a fresh Next.js repo and try to use Novel:
Additional information
No response