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.

Using TSS react with React 16 and Typescript 3

See original GitHub issue

I have a project which is stuck on React 16 and TS 3. Is there any way to use tss react with this setup?

I tried to use import { createMakeAndWithStyles } from "tss-react/compat"; However I am ending up with an error

./node_modules/tss-react/withStyles_compat.js
Module not found: Can't resolve 'react/jsx-runtime'

As I understand it this means I will have to upgrade to at least React 17?

Any help is appreciated.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
garronejcommented, Jul 5, 2022

@MartinSchwarzmaier tss-react 3.7.1 is now compatible with React 16.

1reaction
MartinSchwarzmaiercommented, Jul 5, 2022

Hey sure, This is the generated repo: https://github.com/MartinSchwarzmaier/tss-make-style

Read more comments on GitHub >

github_iconTop Results From Across the Web

garronej/tss-react: makeStyles is dead, long live ... - GitHub
Compile error TS1023​​ it means that you need to update TypeScript to a version >= 4.4. If you can't use import { }...
Read more >
tss-react - npm
Start using tss-react in your project by running `npm i tss-react`. ... TypeScript icon, indicating that this package has built-in type ...
Read more >
Tss React v3 - StackBlitz
React + TypeScript starter project.
Read more >
Chapter 13. Developing React.js apps with TypeScript
This chapter covers. A quick intro to the React.js library; How React components use props and state; How React components communicate with each...
Read more >
tss-react - npm Package Health Analysis - Snyk
Type safe CSS-in-JS API heavily inspired by react-jss For more information about how to use this package see README. Latest version published 18...
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