html: Cannot find module '@kitajs/html/jsx-runtime' or its corresponding type declarations.
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the bug has not already been reported
Versions
{
"dependencies": {
"@kitajs/html": "3.1.2",
"@kitajs/ts-html-plugin": "1.3.4",
},
"devDependencies": {
"typescript": "5.4.2",
}
}
Description
jsx-runtime
is not installed/present in the html
package.
Steps to Reproduce
- Install dependencies.
- Update
tsconfig.json
:{ "extends": [ "@tsconfig/strictest/tsconfig", "@tsconfig/node-lts/tsconfig", ], "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "@kitajs/html", "plugins": [ { "name": "@kitajs/ts-html-plugin" } ] } }
- Add code to test like in
README
:console.log(<div safe>{String.name}</div>);`
- Hovering:
Cannot find module '@kitajs/html/jsx-runtime' or its corresponding type declarations.ts(2307)
- Compiling:
Error: Cannot find module '@kitajs/html/jsx-runtime'
Expected Behavior
No response
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Reactions: 2
- Comments: 16 (7 by maintainers)
Hey @joncys @FedericoBiccheddu @anravell I just released
next
dist-tag. Would you guys mind trying it out?npm i @kitajs/html@next
@arthurfiorette thank you!
Copy this file into your definitions:
https://github.com/kitajs/html/blob/master/packages/html/alpine.d.ts