question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: TypeScript 4.8 unable to discover @preact/signals for auto import

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marvinhagemeistercommented, Sep 14, 2022

@andrewbranch That sounds perfect 👍 We’ll move the types entry to the top of the list. Thanks again for reaching out that’s really awesome!

1reaction
motsscommented, Sep 9, 2022

@marvinhagemeister Thanks and I’ve moved this to the TypeScript Github repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript 4.8 fails to auto import @preact/signals #50705
Bug Report TypeScript 4.8.3 is causing auto import in VSCode to fail for @preact/signals. See similar reported bug here.
Read more >
Issues · microsoft/TypeScript · GitHub
TypeScript 4.8 fails to auto import @preact/signals Needs More Info The issue still ... Fix import statement completions followed by interface declaration.
Read more >
typescript auto imports not working macos - Stack Overflow
Yes. It may be the reason. Try the second fix. go to settings => search for 'tsdk' => click on edit in settings.json...
Read more >
Aral Roca (@aralroca) / Twitter
Introducing Preact Signals: a reactive state primitive that is fast by default. ✓ feels like using plain values automatic updates when values change...
Read more >
Creating a VDOM-less Renderer with Preact Signals - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found