Paul Armstrong
Is there a way to enforce children of a particular component type?
You could look at the jsx-tokenizer from solid-primitives. It doesn't exactly do what you're asking, but it might help enforce the pattern https://primitives.solidjs.community/package/jsx-tokenizer
10 replies
Is there a way to prevent `lowercaseevent` names?
You could write a custom eslint plugin to do it… but you either have to know every single handler available or accept uniformly erroring on any JSX prop that starts with
on
that isn't followed by a capital letter.
It's likely that you could use jsx-handler-names
from eslint-plugin-react
without any modifications5 replies
npm run build fails if outDir is changed
Not all vite options are appropriate in solid-start
app.config
because the information needs to be sent to Nitro, which will then proxy anything to vite appropriately. To change the output directory, set the server.output.dir
property instead:
9 replies
SolidStart ver.1
pnpm's main feature is that it saves disk space by using a different cache and linking strategy that npm lacks.
yarn has a "pnp" strategy that does some huge efficiencies in space saving and ensuring package version lock, but I've not seen any major teams really using it, due to the host of problems it tends to create. yarn does, however have a better resolution algorithm, monorepo support, and plugins out of the box (like it will auto install
@types/
packages when necessary)15 replies
SolidStart ver.1
No single developer working on bigger projects still uses npmJust want to say that this is wholely untrue – although I do recommend using yarn or pnpm instead. Most people use what comes out of the box and is the most recommended and familiar, which is
npm
15 replies
Solid-start site shows blank page when deployed with github-pages
Can you change the github action to deploy to the
gh-pages
branch? That'd let you inspect what's actually being published. It looks like it's loading the 404
page, because your resources are actually there and loading, just not the html document you would expect17 replies