A
A
Andrey Okhotnikov2018-11-22 21:46:41
css
Andrey Okhotnikov, 2018-11-22 21:46:41

How to include Css modules in React create app typescript?

How to include Css modules in React create app typescript? In create-react-app which I connected to js, ​​everything works.
When connected to a project on TS when trying to import or Error - app.css module not found
import styles from './app.css'
import * as styles from './app.css'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lnked, 2018-11-26
@lnked

Add loader ( typed-css-modules-loader ) or any other equivalent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question