Skip to content

Using TSS react with React 16 and Typescript 3 #95

Closed
@MartinSchwarzmaier

Description

@MartinSchwarzmaier

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions