if i set module as commonjs in tsconfig file, i am not able render image. but it works fine if i set module as esnext. but i want it as commonjs. please let me know the way.
example:
import logo from './logo.png'
// inside render method (ouput is undefined)
<img src={logo}/>
if i set module as commonjs in tsconfig file, i am not able render image. but it works fine if i set module as esnext. but i want it as commonjs. please let me know the way.
example:
tsconfig:
"module": "commonjs",