bug: TypeScript 4.8 unable to discover @preact/signals for auto import (original) (raw)

Description

Not sure if this is the right place to post this TypeScript specific issue but I found out that auto importing @preact/signals fails in VSCode when using latest TypeScript 4.8. Auto importing works just fine when downgrading to TypeScript 4.7.

Affected TypeScript version: 4.8.3
Affected @preact/signals version: 1.0.3

Steps to reproduce

  1. Create a .ts or .tsx file with simple TSConfig file.
  2. Write signals to trigger VSCode's autocompletion to auto import signals from @preact/signals

Expected behavior

Auto imports should work when typing signals

Actual behavior

Auto imports fails to auto import anything from @preact/signals when using TypeScript 4.8.