6 Response. TypeScript Your issue comes from the dynamic path: path.join(process.cwd() + "/data").The compiler can't determine which module it is at compile time, and the linter doesn't like the causes that lead to any.. You should use a static path to the module. User-Defined Type Guards. ... why we wrote the above example by assembling the contents of the import map before creating and inserting the