Closed lancejpollard closed 7 months ago
No clue. This project is tested and it works.
Your issue seems to be about Next.js, React’s types, or hast-util-to-jsx-runtime
. Have you tried reducing your problem to an MVP, using non-alpha releases, checked without Next.js? Checked if it’s just a TS error (`@ts-expect-error) or an actual error? There’s nothing that needs to change here, so I’ll close it.
I’d guess related to https://github.com/DefinitelyTyped/DefinitelyTyped/pull/68600 / Next canaries / using an old react / your tsconfig/setup not supporting actual ESM correctly
How do I get this working (found this straight in the starry-night README):
For this line:
Getting this error for each of the imports:
This is in a Next.js app, do I need to add something to my webpack config or next.config.js?
I am using React 18.2.0 on Next.js 14.1.2-canary.1 with these:
My full code is currently this: