importMap for file in src/ breaks build, relative to parent instead of project
kyeotic opened this issue · comments
I added twind to my import map to map importing it easier
{
"imports": {
// ..
"tw": "./src/twind/twind.ts",
}
}
This causes the build to fail when it tries to import it relative to the project directory's parent instead of the project directory
❯ deno task build
Task build deno run -A ./build.ts
[ultra] - INFO ✔ Build is valid
[ultra] - INFO Building module graph for entrypoint ./client.tsx
[ultra] - INFO ✔ Module graph built
[ultra] - INFO Vendor modules for entrypoint ./client.tsx
[ultra] - INFO ✔ Vendored 14 modules for entrypoint ./client.tsx
error: Uncaught Error: Failed to resolve from module graph file:///home/kyeotic/dev/src/twind/twind.ts
throw new Error(
The file is actually located at
file:///home/kyeotic/dev/portolfio/src/twind/twind.ts
Here is a commit-pinned repository link. Just run deno task build
to see the error.