eslint-config error: cannot access C: due to not declared in deps (Yarn v3 PnP)
Full error:
Error: synckit tried to access "C:, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
11 Replies
No idea what this error is, but i highly doubt it's related to the package. If anything it's eslint itself throwing the error. Other than that if it fails to read C: then you somehow messed up your windows or god knows what.
yeah that is clearly not @sapphire/eslint-config. That's something related to synckit, whatever that may be
i tried eslint and programmer's hangout, they said go ehre
well idk bro but the error very clearly says the problem is in synckit
synckit claimed to solve the issue and to add certain stuff to ur eslint since they are a dep of eslint
many people said they fixed it
and i added what they said
and it still doesnt work
Stack Overflow
eslint "synckit" resolve error where yarn berry pnp
when run next lint or eslint below error has occured
./src/pages/_app.page.tsx
1:1 Error: Resolve error: synckit tried to access ", but it isn't declared in its dependencies; this makes the r...
GitHub
GitHub - un-ts/synckit: Perform async work synchronously in Node.js...
Perform async work synchronously in Node.js using
worker_threads
with first-class TypeScript support. - GitHub - un-ts/synckit: Perform async work synchronously in Node.js using worker_threads
...well again idk mate but that error is not related to our package and no one else has that issue. Something is clearly fucked up on your system or something. Either send a github repo / zip of the code so I can more thoroughly look into it at some time or try and fix it yourself
the issue is yarn PnP.
@Favna i did tests with the default eslint/prettier config and the sapphire, the default works flawlessly while the sapphire one fails
wait oh my god nevermind i fixed the issue, there was a space in the folder
though file explorer had no space
nvm lmao sorry