#Types wont work

1 messages · Page 1 of 1 (latest)

broken stump
#

I did bun init already and installed both @types/node and @types/node yet it doesnt work

sly shuttle
#

try restarting vscode

#

sometimes the ts server breaks itself

#

(also console.error should always work, regardless of if node/bun/browser)

broken stump
broken stump
sly shuttle
#

what does your tsconfig.json look like?

#

as if its the default bun init, it like has to work

broken stump
#

its the default that bun init gives

#

btw I noticed this, is this how its supposed to look like?

#

all of the packages only have a package.json inside them for some reason

sly shuttle
#

uh its meant to... have data

broken stump
#

yeah weird

sly shuttle
#

maybe u need to bun pm cache rm as you somehow removed the files once

broken stump
#

so uh what now

#

I tried doing bun add again but it doesnt work

sly shuttle
#

and this is your first time using bun?

broken stump
#

adding other packages works fine for some reason but when I install @types/node and @types/bun it only installs the package.json files

broken stump
sly shuttle
#

can you try outside documents folder (like downloads)

#

as onedrive sometimes does wacky stuffs

broken stump
#

I dont use onedrive though

#

I intentionally put it in a folder that isnt affected by onedrive

sly shuttle
#

but there shouldn't be any reason for this :(

broken stump
#

yeah

#

gonna clear recycle bin and try again