After creating new custom fonts using the following command:
$ pdfmakefg ./my-fonts ./pdf/fonts/custom-fonts.js
, I added them to assets/fonts/. However, when attempting to import these custom fonts in an Angular component, I encountered the following error:
import pdfFonts from '../../../assets/fonts/custom-fonts';
Add-student.component.ts:27:22 - error TS7016: Could not find a declaration file for module '../../../assets/fonts/custom-fonts'. 'C:/Users/Asus/Desktop/students-prjt/prjct/src/assets/fonts/custom-fonts.js' implicitly has an 'any' type.
The path to the new custom fonts is correct. Despite this, I am still struggling to resolve this error! Is there any assistance available?