In React (CRA), the following works: import logo from './logo.png';
. However when I try this in Angular (12) I get the error Cannot find module './logo.png' or its corresponding type declarations.
I know the "angular way" is to make use of assets, however this doesn't work for me, since I'm creating an Angular library, which has no assets.
How can I make the above work or what are alternative solutions to solve this?