Embarking on a new project involving Angular SSR, I am faced with the challenge of importing a JavaScript library that includes a JSON file using the following syntax:
var json = require('myfile');
The myfile.json file does indeed exist.
However, during compilation, I encounter the error message:
Module not found: Error: Can't resolve 'myfile' in '.... filename'
Seeking assistance from anyone who may have encountered this issue before. Is there a way to adjust tsconfig.json or angular.json to circumvent this error?