79178373

Date: 2024-11-11 16:21:48
Score: 2
Natty:
Report link

Relative specifiers for import statements have to use a file extension: https://nodejs.org/api/esm.html#esm_import_specifiers

Just import { AppService } from './app.service.js'; TypeScript is clever enough to figure out what you want is app.service.ts during compilation.

A workarround could be https://www.npmjs.com/package/tsc-alias as mentioned in https://stackoverflow.com/a/76678279/517319

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Raphael Bossek