mrmckeb/typescript-plugin-css-modules

Incorrect type when using Yarn workspace

devsveil opened this issue · 3 comments

Describe the bug
I'm trying to set up a Yarn workspace, but I'm randomly getting {} type on import in one or all packages.

To Reproduce
Reproduction Github Repo

Expected behavior
Types should be correct.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Editor: VSCode: 1.76.1

I'm getting this error as well with the same yarn workspace setup.

Hi @VlasenkoStanislav, unfortunately when I opened that project locally and installed with Yarn (1.22), it worked. I then opened both workspaces and was able to reproduce the error in this project.

We made multiple changes to the plugin recently, so I tried upgrading to v5 and it seems to have fixed the issue - which I think is good news. Can you confirm?
image

Hi @mrmckeb, yes, upgrading to v5 fixed the issue! 🎉