Comments (10)
the same problem appears to happen on this plugin's relatively newly released 5.0.2
, no change.
from typescript-plugin-css-modules.
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.
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.
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.
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.
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.
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.
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.
No, that's plenty - thanks! Let's see if the TS team has any thoughts.
from typescript-plugin-css-modules.
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)
- The ts type prompt is not updated after modifying the scss file HOT 1
- Plugin syntax error but typescript compiles fine HOT 2
- Allow to create configurable extensions for VSCode based on this plugin HOT 3
- How to use `typescript-plugin-css-modules` in `ts-loader` webpack ? HOT 1
- Plugin causes error in VSCode with TypeScript 5.2.2 HOT 3
- Current customMatcher does not match stylus files HOT 2
- The plugin isn't working correctly for me and I'm not sure why HOT 4
- Move to file in VSCode does not work with plugin installed HOT 1
- Is version 5 backwards compatible with weback and CRA HOT 2
- refactoring support in vscode HOT 1
- goToDefinition doesn't work properly HOT 12
- Plugin activation failed: TypeError: Cannot set property createLanguageServiceSourceFile
- Using external importers HOT 1
- Consider making `sass` an optional peerDependency HOT 1
- Plugin crashes TypeScript ProjectService in TS 5.3.2+ HOT 1
- Does not work in VSCode and a common SvelteKit project. HOT 2
- `@value` is missing from imported type HOT 5
- goToDefination not working in WebStorm HOT 5
- Add support for Node.js Subpath Imports
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript-plugin-css-modules.