Spixy
Spixy15mo ago

Import map

Hi I have this in deno.json:
"imports": {
"./app.controller": "./app.controller.ts",
"imports": {
"./app.controller": "./app.controller.ts",
but deno seems to ignore it:
$ deno check src/app/app.controller.spec.ts
error: Module not found "file:///.../src/app/app.controller".
at file:///.../src/app/app.controller.spec.ts:2:31
$ deno check src/app/app.controller.spec.ts
error: Module not found "file:///.../src/app/app.controller".
at file:///.../src/app/app.controller.spec.ts:2:31
In .spec file I use import { AppController } from './app.controller'
1 Reply
Spixy
Spixy15mo ago
Code has to be compatible with both deno aj node. I tried allowImportingTsExtensions: true in node but without success, so now I try it from deno side.