Only Cliches
Only Cliches
SSolidJS
Created by sh1man on 2/10/2024 in #support
Custom auth solidstart by prisma
are you familiar with password hashing? That's a very important aspect to rolling your own auth...
73 replies
SSolidJS
Created by Only Cliches on 2/7/2024 in #support
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
SSolidJS
Created by Only Cliches on 2/7/2024 in #support
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
SSolidJS
Created by Only Cliches on 2/7/2024 in #support
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
SSolidJS
Created by Ryan on 7/22/2023 in #support
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
SSolidJS
Created by webmandman on 1/22/2024 in #support
cannot use import statement outside a module
could also try using something other than "ubuntu-latest" to build the container from. Something like debian or even alpine.
24 replies
SSolidJS
Created by webmandman on 1/22/2024 in #support
cannot use import statement outside a module
the only thing I can think is GitHub actions or the Docker container you're pulling has some strange default configuration applied to the environment.
24 replies
SSolidJS
Created by webmandman on 1/22/2024 in #support
cannot use import statement outside a module
bumping to a newer version of Node, like v20 in the container might fix things, but doesn't really make sense that it's happening at all.
24 replies
SSolidJS
Created by webmandman on 1/22/2024 in #support
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
SSolidJS
Created by webmandman on 1/22/2024 in #support
cannot use import statement outside a module
@webmandman I would try bumping the Node version in your YAML deploy script. Not sure what else to try...
24 replies
SSolidJS
Created by webmandman on 1/22/2024 in #support
cannot use import statement outside a module
No description
24 replies
SSolidJS
Created by webmandman on 1/22/2024 in #support
cannot use import statement outside a module
the problem is obviously coming from the vixni dependency.
24 replies
SSolidJS
Created by webmandman on 1/22/2024 in #support
cannot use import statement outside a module
can you share a link to your project?
24 replies
SSolidJS
Created by webmandman on 1/22/2024 in #support
cannot use import statement outside a module
also, looks like GitHub actions is using Node v18.17. Are you using Node 18 locally or another version?
24 replies
SSolidJS
Created by webmandman on 1/22/2024 in #support
cannot use import statement outside a module
NodeJS won't process JS files with ES Module "import" statements without an MJS extensios. Either use require with JS files or change them to MJS files.
24 replies
SSolidJS
Created by webmandman on 1/22/2024 in #support
cannot use import statement outside a module
have you tried renaming your files to *.mjs instead of *.js? That appears to be what the error is about.
24 replies