Unsafe assignment of an `any` value

I searched and read details regarding this linter error but nothing has worked for me so far. I am trying to create a router for a Prisma model
No description
No description
4 Replies
JojoHomefries
JojoHomefries13mo ago
I have restarted many times, rebooted eslint, ran prisma db push and generate, and the code is working in the browser, so its an IDE issue, can't figure out where the issue is
cadams
cadams13mo ago
ctx.prisms.sketchbook ?
JojoHomefries
JojoHomefries13mo ago
I see the issue elsewhere where it doesn't make sense, so I guess I need to dig deeper to figure this out. Not sure why this error is happening on the authMiddleware method
No description
No description
JojoHomefries
JojoHomefries13mo ago
I am seeing the "Unsafe assignment of an any value." in almost every file in /src Seems like I messed up the config or something, but I am not sure how to debug Issue with linter? So I think this is a weird IDE issue. I am on Windows so I am loading my code from the Windows Subsystem for Linux mount (\\wsl.localhost) I copied my project over to my Windows folder (outside of the linux mount) and the errors do not appear there So I suspect eslint is having some issue when I load my project in \wsl.localhost This is disappointing, maybe I can figure out how to fix it... Confirmed. My solution is to store the files in Windows, and access the windows moun in WSL, to execute commands (npm run dev, for example) WSL has some quirks :/
Want results from more Discord servers?
Add your server