You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError: Cannot set properties of null (setting '...'), when using markAsUsed comments #93
Activity
yuhsianw commentedon Oct 30, 2023
Hi @tiwariav , thanks for reporting this. Can you please provide the reproduce steps for the issue following this example:
Repro Code
@keyframes someAnimation {}ESLint Config
{ "plugins": ["css-modules"], "extends": ["plugin:css-modules/recommended"] }Expected Result
Expected no errors
Actual Result
Received error:
yuhsianw commentedon Nov 1, 2023
Template for above:
tiwariav commentedon Nov 1, 2023
Repro Code
ESLint Config
{ "plugins": ["css-modules"], "rules": { "css-modules/no-undef-class": ["warn", { "camelCase": true }], "css-modules/no-unused-class": ["error", { "camelCase": true }], } }Expected Result
Expected no errors
Actual Result
Received error:
Can check here as well.
https://codesandbox.io/p/sandbox/brave-mopsa-ycnv8f?file=%2Fsrc%2Findex.tsx%3A6%2C1
tiwariav commentedon Nov 1, 2023
From what I have tried, its only giving error if using nested classes. Although the same works fine with previous version.
pin css modules
pin css modules