Next.js Discord

Discord Forum

VSCode Imports

Unanswered
Satin Angora posted this in #help-forum
Open in Discord
Satin AngoraOP
Hey,

I have some strange issues, when I create a app via create next app my auto imports / quickfix are fine. But I have another project, created with create t3 app I cannot use quickfix in vscode to import.
If you check both screenshots, one has quickfix imports and the other one doesnt.

I simply cannot auto import anything thats coming from a some npm packages, If I manually type the import it works.
Same for auto complete (strg+space), example strg + space on "use" is finding lucide-icons (<User* ) or react hooks just fine, but nothing from usehooks-ts / next-auth (like useSession()) or other installed packages.
Does only happen on some projects that I created with pnpm + create t3 app instead of create next app

I don't rly know where to look to solve that weired issue.
Does anyone know what that could be? A vscode setting? Some typescript releated stuff? something with pnpm?

0 Replies