I have a .tsx file and import it in a ts file via
import {ReactChildComponentView} from "./MessageBox";
but when I run ng serve it throws an error
ERROR in ./src/app/react/wrapper.component.ts
Module not found: Error: Can't resolve './MessageBox' in '.../src/app/react'
In Chrome console I can see the following Error
using description file: .../package.json (relative path: ./src/app/react/MessageBox)
as directory
.../src/app/react/MessageBox doesn't exist
no extension
.../src/app/react/MessageBox doesn't exist
.ts
.../src/app/react/MessageBox.ts doesn't exist
.js
.../src/app/react/MessageBox.js doesn't exist
it seems like angular doesn't look for .tsx files. How can I change that?