tinyplex / tinybase

The reactive data store for local‑first apps.
https://tinybase.org
MIT License
3.71k stars 77 forks source link

VSCode Auto Import not working correctly #115

Closed ps73 closed 10 months ago

ps73 commented 10 months ago

Describe the bug

It seems that the auto import for this package inside a TypeScript Repo in VSCode is not working correctly.

Instead of importing the real modules it always tries to import it from the type definitions.

Clicking this menu element:

Screenshot 2023-12-04 at 16 20 32

leads to this import:

Screenshot 2023-12-04 at 16 20 41

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

No response

Expected behavior

No response

Screenshots or Videos

No response

Platform

Additional context

No response

jamesgpearce commented 10 months ago

Hmm. I can't reproduce and I auto import in VSCode (into other apps) all the time. Can I quickly ask for your VSCode and TypeScript versions? Also maybe your tsconfig.

jamesgpearce commented 10 months ago

Actually now I can repro. The heuristic here is surprising but let me try and figure it out.

jamesgpearce commented 10 months ago

OK, this might be better

image
jamesgpearce commented 10 months ago

OK, try v4.5.6 and restart your TS server. Let me know how it goes!

ps73 commented 10 months ago

Thanks for your quick fix. Now it works like expected 👍