Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goToDefination not working in WebStorm #262

Open
sagrodev opened this issue Mar 19, 2024 · 5 comments
Open

goToDefination not working in WebStorm #262

sagrodev opened this issue Mar 19, 2024 · 5 comments

Comments

@sagrodev
Copy link

sagrodev commented Mar 19, 2024

Hi, hope we can resolve this issue

I use WebStorm 2023.2.4

When i import my styles object, it has correct types
image

Autocomplete working well, i can write selectors
image

But when i try to go to defination i gor error in webstorm
image

I also tried goToDefination in VSCode, with

{
  "typescript.tsserver.pluginPaths": ["typescript-plugin-css-modules"]
}

And in this case working fine

What can i do for correct work in WebStorm?

@astrodelete
Copy link

Hi, also have the same issue.
Do you have any ideas on how to fix this?

@mrmckeb
Copy link
Owner

mrmckeb commented Mar 21, 2024

Hi there, I haven't tried this in WebStorm (only VS Code), but the way this works is that it "tricks" TypeScript into thinking the CSS is a declaration file (in memory), so it "should" work wherever the plugin itself works.

The PR you linked to might solve the issue, but I can't guarantee it... I will try to look at that soon.

@astrodelete
Copy link

Thank you, I hope you find a solution :) I would also be very grateful if you could check your solution in Webstorm and try to find out why it doesn’t work there.

@astrodelete
Copy link

Perhaps there is a similar setting, but for the Webstorm configuration? {
"typescript.tsserver.pluginPaths": ["typescript-plugin-css-modules"]
}

@sagrodev
Copy link
Author

sagrodev commented Mar 25, 2024

Hi there, @mrmckeb i tried use fork of @astrodelete PR's as local deps and i still have problem describe early :(
May be u can find solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants