Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import shallowRender from preact-render-to-string/jsx due to TypeScript type errors #297

Closed
shinyama-k opened this issue Apr 12, 2023 · 0 comments · Fixed by #298

Comments

@shinyama-k
Copy link
Contributor

I am trying to import shallowRender using the following method, but I am encountering TypeScript type errors and cannot import it:

import { shallowRender } from 'preact-render-to-string/jsx';

I suspect that this is due to the missing declaration of jsx.d.ts in package.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant