All of a sudden `classList` is typed as string | undefined
I am using SolidJS with Astro and at one point I duplicated a component file to extract logic into it and now
class
and classList
have unexpected types:
The reference is node_modules/.pnpm/[email protected]/node_modules/solid-js/types/jsx.d.ts and it does only contain:
What's going on?!31 Replies
where do you try to apply classList on?
HTML:
weird
I'm also on 1.9.3
I think your typescript server is confusing stuff. Do you use the solid jsx in tsconfig?
Do you mean
"jsxImportSource": "solid-js",
?yeah
and
"jsx": "preserve",
Yeah
The code is on GitHub:
https://github.com/WesSouza/wes.dev/blob/wes95/src/Wes95/components/Window.tsx#L126
and a restart didn't work?
ok lemme test
no, and running
tsc --noEmit
shows the same errorstsc works for me too
rm -rf node_modules
maybe that helps
(gives other errors but none related to that)
what the heck, that worked?!
silly node modules
I thought we were done with nuking node modules 😦
my muscle memory always puts a rm -rf before anything that I do haha, I'm trusting nothing
nope, never
so like, a vite cache issue maybe?
probably not
tsc doesn't do anything with vite
I literally have this script in every package.json
and I always to
pnpm clean && pnpm install && pnpm build
if I'm having issues or am about to push
just to double check that it works on not only my machineI didn't reinstall anything so it must be some sort of cache shenanigans
Anyway... thanks 😛
hm could be, caching do be annyoing sometimes :D
np! :zzz_flushedfroge:
the whole editor <-> tsc <-> eslint combo is just iffy when shits gets bad
editor acuses an issue, tsc not, eslint is just slow
eslint is just slow haha
yeah sounds about right
I tried biome for a few new projects now and it's like day and night. sadly it doesn't support everything I need yet but I'm looking forward to it
it has partial support for
.astro
, but not yet formatting them :/I'm excited for voidzero, last time I tried Rome it was a bunch of petty rules, and it drove me insane
it also crashed a lot, which I'm sure is better nowadays
the rome disaster
who is rome?
Biome's previous incarnation
ohh
rome was voidzero before the whole vc thingy
rome got some millions to "fix the js ecosystem" or at least part of it
as you don't know them
can you guess what happened?
:ryan:
:deepseacreature:
the js ecosystem can never be "fixed"
everyone has opinions about everything
and if you have strong enough opinions, you create your own formatter
xD
the people behind voidzero are not the same, so there's some hope
yeah