Only Cliches
Async SSR Magic?
I dropped in a PR to update the SSR example, it was over 2 years old! https://github.com/ryansolid/solid-ssr-workbench/pull/4
7 replies
Async SSR Magic?
there is no magic, the docs are wrong. Working esbuild with async ssr: https://github.com/only-cliches/solid-ssr-workbench/tree/esbuild
7 replies
Async SSR Magic?
expirimenting with rollup, seems like the
async
flag in the solid preset does nothing. The compilation result doesn't change regardless of that flag. Which makes sense, I couldn't find anything in the jsx transform plugin that honored that.7 replies
How to stop VS Code from erroring with `Cannot find name 'React'.ts(2304)`?
If you have an "include" property in tsconfig.json with directories listed, but you create a tsx file outside the included directories, this problem will happen. Either move your tsx file to an included directory or add the directory to the "include" property in tsconfig.json.
4 replies
cannot use import statement outside a module
yeah that's the rub for sure, doesn't make any sense as the module in question is doing EXACTLY what the error is asking for... the file in question is .mjs and the package.json for that library has "type":"module" in it.
24 replies