The deployment failed: Relative import path "$fresh/server.ts" not prefixed with / or ./ or ../
When deploying I get this error:
A person who had the same error on their machine solves this by adding this to the import map:
This doesn't work on my case. In my understanding this shouldn't be an issue at all. Do you know why is that?
A person who had the same error on their machine solves this by adding this to the import map:
This doesn't work on my case. In my understanding this shouldn't be an issue at all. Do you know why is that?
Background
My fresh project is under some sub-folder from the root. The structure is like this:deno.json
deno.jsonStack Overflow
I have this TypeScript complaint in my editor for a Deno module.
Relative import path "$fresh/dev.ts" not prefixed with / or ./ or ../
There is an import_map.json with this content.
{
...
Relative import path "$fresh/dev.ts" not prefixed with / or ./ or ../
There is an import_map.json with this content.
{
...