I am new to working with TypeScript and I have encountered an issue when trying to import an image from my assets folder. Despite having the image stored in a designated folder, Visual Studio Code notifies me that it cannot find the module.
Here is the error message that was displayed:
ERROR in src/app/tool-box/tool-box/ao-bar/ao-bar.service.ts:3:19 - error TS2307: Cannot find module '../../../../assets/objects-ao-bar/fabio.png'.
import Fabio from '../../../../assets/objects-ao-bar/fabio.png';
Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
ℹ 「wdm」: Failed to compile.