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

Question - Setting up sift JSX in deno.jsonc #51

Open
deanveloper opened this issue Jan 4, 2022 · 2 comments
Open

Question - Setting up sift JSX in deno.jsonc #51

deanveloper opened this issue Jan 4, 2022 · 2 comments

Comments

@deanveloper
Copy link

It's possible to set up deno to use other JSX runtimes, as seen here - https://deno.land/[email protected]/jsx_dom/jsx

How would I change this so that deno "just works" with sift's jsx and h functions? I'd like to avoid explicitly importing h if possible.

Also, I'm running into another issue:
image

How would I go about fixing it so that types are imported properly?

@deanveloper
Copy link
Author

deanveloper commented Jan 4, 2022

Upon playing around with config.jsonc a bit more, it looks like the following config works (not actually tested):

{
	"compilerOptions": {
		"jsx": "preserve",
		"jsxImportSource": "https://deno.land/x/[email protected]/mod.ts",
		"jsxFactory": "h",
		"jsxFragmentFactory": "Fragment"
	},
}

However this still doesn't resolve the JSX.IntrinsicElements issue.

@deanveloper
Copy link
Author

it appears that even using the "catch-all" that Microsoft provides doesn't fix the JSX.IntrinsicElements issue:
image

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

No branches or pull requests

1 participant