Skip to content

Tag: angular

Could not import js file into component.ts

Hello I developped an angular 12 app. I imported js to each component in the previous app on angular 9 like this : js file: component.ts file: and it worked very well but in the angular 12 app it doesn’t anymore and returns me this error: Could not find a declaration file for module ‘src/assets/js/file.js’. ‘c:/Users/…/src/assets/js/file.js’ implicitly has an ‘any’