Git Product home page Git Product logo

Comments (10)

ekilah avatar ekilah commented on June 10, 2024

the same problem appears to happen on this plugin's relatively newly released 5.0.2, no change.

from typescript-plugin-css-modules.

mrmckeb avatar mrmckeb commented on June 10, 2024

Hi @ekilah! Sorry you've hit this.

To clarify, are you saying this was fine with version 4.x for you? Have you also updated to TypeScript 5.x?

The plugin should fail and just return an empty object {} if something is wrong, but it's possible that something else is happening here. Are you able to share the TypeScript server logs?
https://stackoverflow.com/questions/70487104/webstorm-see-typescript-server-logs

from typescript-plugin-css-modules.

ekilah avatar ekilah commented on June 10, 2024

I actually updated from this plugin's 3.4.0 -> 5.0.1, I'd have to test 4.x separately. I only really updated it to get the fixes from

because I was cleaning up some old dependencies in my project. And it looks like this plugin's 4.2.0 would provide that update. However, yes, the project is using TS 5.1.6 (and my editor is using the same version as the project), and I don't know if 4.2.0 will work with TS 5?

from typescript-plugin-css-modules.

ekilah avatar ekilah commented on June 10, 2024

I happened to stumble on microsoft/TypeScript#55673 while debugging more. I left a detailed comment there with some logs attached: microsoft/TypeScript#55673 (comment)

Note to myself: getting logs like so, because the webstorm logging util actually doesn't quite work correctly:

export TSS_LOG="-level verbose -file /Users/monroe/tsserver.log" && open -a "WebStorm.app"

from typescript-plugin-css-modules.

mrmckeb avatar mrmckeb commented on June 10, 2024

You need to use 5.x of this plugin for TypeScript 5.x support. Not intentionally aligned in versions, but there were some breaking changes shipped with that release. Have you tried downgrading to the previous TS release to see if you still encounter that issue?

Thanks for also posting on the TS thread. Perhaps they can provide some more insight. There's obviously something going on, but I'm not sure what and it's seemingly very rare that people hit it - as this extension gets 275k weekly downloads, and I know many of those use the latest TS version.

from typescript-plugin-css-modules.

ekilah avatar ekilah commented on June 10, 2024

I switched over to a smaller side project that was easier to test things on (and to produce those logs I posted), where it is also easy to switch between TS 4 and TS 5.

There, I can't reproduce the issue on TS 4 and plugin 4.2.3 - a whitespace change to my tsconfig file there does reload the TS server (I see the errors in a TS file I've produced to test flash for a second) but it comes back immediately. So it does seem like this is probably more of an issue with TS 5 than it is with WebStorm?

Unfortunately, in the main project i was posting about originally, downgrading to TS 4 isn't a realistic option...

from typescript-plugin-css-modules.

mrmckeb avatar mrmckeb commented on June 10, 2024

Thanks for trying to create a reproduction, I appreciate the effort. As you can imagine, it makes debugging significantly (even infinitely) easier.

Could you try a release like these?

from typescript-plugin-css-modules.

ekilah avatar ekilah commented on June 10, 2024

5.1.3 seems to work: microsoft/TypeScript#55673 (comment)

I didn't bother trying 5.0.4 since 5.1.3 worked, but lmk if you want me to. (I've spent most of my work day on debugging this slowly but I could try tomorrow if so 😛)

from typescript-plugin-css-modules.

mrmckeb avatar mrmckeb commented on June 10, 2024

No, that's plenty - thanks! Let's see if the TS team has any thoughts.

from typescript-plugin-css-modules.

mrmckeb avatar mrmckeb commented on June 10, 2024

Closed by #244 for now. We'll reopen if the TS team think there are changes we can make in future. Thanks again!

from typescript-plugin-css-modules.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.