D
Deno

help

Import map

SSpixy8/7/2023
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' 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.

Looking for more? Join the community!