question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Classnames support

See original GitHub issue

Describe the solution you’d like I really like your plugin! It’s awesome. I just had the issue, that I’m using classnames in combination with the classnames-loader within webpack. Thus I can do something like this in my component files:

import styles from './styles.scss'

<MyComponent className={styles('myStyle', {someOtherStyle: true})}

For more details, see: https://github.com/itsmepetrov/classnames-loader and https://github.com/JedWatson/classnames So currently, I just get the error message: This expression is not callable. Type '{ ... }' has no call signatures. Is there any chance that this can be supported somehow by your plugin?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
la99ercommented, May 25, 2020

I’m still interested in this feature, but I had some problems at the beginning with understanding how typescript plugins work. Then I somehow forgot about this issue and since then I use // @ts-ginore which really doesn’t make me happy at all 😄
I’m not sure if I find time for implementing this feature and get my head into typescript plugin implementation. But when I have time for it, I’ll try to do it 😃

0reactions
mrmckebcommented, Oct 24, 2022

I’m going to close this off for now, but if anyone wants to pick this up in future, feel free to open new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

classnames - npm
A simple utility for conditionally joining classNames together. Latest version: 2.3.2, last published: 3 months ago. Start using classnames ...
Read more >
"classname" | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >
Element.className - Web APIs | MDN
The className property of the Element interface gets and sets the value of the class attribute of the specified element.
Read more >
Why React classnames Is A Lifesaver And How You Could ...
In this tutorial, I cover why you should use classnames and how to use it -- for those times when you need multiple...
Read more >
You don't know the classNames library - Arek Nawo
Support me by buying me a coffee, sponsoring, or hiring me to do a beautiful website for you! You don't know the classNames...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found