New project deno-ts error with wouter
d9k opened this issue · comments
I created project with deno run -A -r https://deno.land/x/ultra/create.ts
as https://ultrajs.dev/create-project says, choose wouter
and get an error
'SearchParamsContext.Provider' cannot be used as a JSX component.
Its return type 'ReactNode' is not a valid JSX element.
Type 'undefined' is not assignable to type 'Element | null'.
(deno-ts)
at <SearchParamsContext.Provider value={state}>
line
in src/wouter/index.tsx
.
vscode 1.80.0, vscode-deno v 3.25.0, deno 1.34.3, ultra 2.38
.vscode/settings.json
:
{
"deno.enable": true,
"deno.lint": true,
"deno.unstable": true,
"deno.importMap": "./importMap.json"
}
Issue can be reproduced without VSCode: deno run -A --check --watch ./server.tsx
the doc says
> Can I use TypeScript and/or JSX?
If you want.
So it is an issue.