You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the bug has not already been reported
Versions
kitajs/html: 4.1.0
typescript: 5.4.5
node: 22.0.0
Description
Cannot build a package with "type": "module" using tsc for NodeJS. Doing so seems to always result in the error Cannot find module '@kitajs/html/jsx-runtime' or its corresponding type declarations. I believe this is because the output is doing a deep import on a jsx-runtime without a file extension.
I do not believe this is a duplicate of #150 even though it looks very similar. In that case everyone commenting was using Bun as the runtime in this instance I'm using Node. Apologies if I'm doing something silly.
Prerequisites
Versions
kitajs/html: 4.1.0
typescript: 5.4.5
node: 22.0.0
Description
Cannot build a package with
"type": "module"
usingtsc
for NodeJS. Doing so seems to always result in the errorCannot find module '@kitajs/html/jsx-runtime' or its corresponding type declarations
. I believe this is because the output is doing a deepimport
on ajsx-runtime
without a file extension.I do not believe this is a duplicate of #150 even though it looks very similar. In that case everyone commenting was using Bun as the runtime in this instance I'm using Node. Apologies if I'm doing something silly.
Steps to Reproduce
I've produced a repoduction at https://github.com/mattdean-digicatapult/kitajs-html-example. In short to reproduce checkout that repo and just do:
build is just running
tsc
if you'd preferExpected Behavior
The build to succeed.
The text was updated successfully, but these errors were encountered: