8

I'm working on a Next-JS project with TypeScript. Everything was fine till one day, VSCode decided to change my auto-import priorty. In my case, I wanted to import useEffect, useContext,.. from react. But somehow, Vscode auto-import first-place changed to preact-hook, which is different from react and take me time to debug it later when I test the code.

Example:

Any Idea how can I change the order to let react goes first?

Anji
  • 517
  • 2
  • 10
  • I've noticed since the last update (or maybe I installed some extensions?) that my imports were working like a dream, and now it cannot seem to figure out simple imports like ` – CTS_AE Sep 23 '21 at 20:58
  • I had exact same issue with ```next/image``` and ```next/link``` – Anji Oct 19 '21 at 12:38

0 Answers0