MqxM
Denoβ€’15mo agoβ€’
5 replies
Mqx

import_map.json not working

I am currently trying to checkout an project in Deno 2.0.0 and when I try to run a task I get a warning and error:
Warning the configuration file "cwd/deno.json" contains an entry for "importMap" that is being ignored.
error: Relative import path "@std/cli/parse-args" not prefixed with / or ./ or ../ and not in import map from "project/config/build/index.ts"


My deno.json looks like this:
{
  ...
  "importMap": "./config/import_map.json",
  ...
}


My import_map.json is placed at:
project/config/import_map.json


Does anyone know why I get this warning and error?
Was this page helpful?