F
F
fendrarog2022-03-29 19:11:26
typescript
fendrarog, 2022-03-29 19:11:26

How to import js, jsx, css extension modules into typescript files?

I have a project written with react redux. I decided to implement typescript, but due to little experience I didn’t understand how to make ts and tsx files understand the import of js and jsx files that I haven’t refactored into ts yet. I tried to register loaders in the config, it doesn't work. Tell me please.

My package.json
624331c83a548814335769.jpeg
62433240f1f45871751113.jpeg

My webpack config
62433271150d1915412934.jpeg

My tsconfig
6243329196f0c977435126.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Shipin, 2022-03-30
@alexshipin

ts and tsx files understood the import of js and jsx files which I haven't refactored into ts yet.

Do this , or like this
And if you need to import modules, then look here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question