1. Create a new package 2. `npm install node-fetch` (or whatever package) 3. Set up a tsconfig.json with nodenext as the module mode. ```json5 { "compilerOptions": { "module": "nodenext", "noEmit": true, "strict": true } } ``` 4. Add the following code ```ts import * as fetch from "node-fetch"; const b = /**/someList.filter(a => a.startsWith("@types")) ``` 5. At the cursor `/**/`, type in `new Set(` ```ts import * as fetch from "node-fetch"; const b = new Set(/**/someList.filter(a => a.startsWith("@types")) ``` 6. Notice that the resolution to `node-fetch` is now borked. 7. Complete the parentheses on the other side ```ts import * as fetch from "node-fetch"; const b = new Set(someList.filter(a => a.startsWith("@types")))/**/ ``` 8. The resolution to `node-fetch` is likely still failing. If so, try to type a `;`. That may fix it. ```ts import * as fetch from "node-fetch"; const b = new Set(someList.filter(a => a.startsWith("@types")));/**/ ```
Create a new package
npm install node-fetch(or whatever package)Set up a tsconfig.json with nodenext as the module mode.
Add the following code
At the cursor
/**/, type innew Set(Notice that the resolution to
node-fetchis now borked.Complete the parentheses on the other side
The resolution to
node-fetchis likely still failing. If so, try to type a;. That may fix it.