festusyuma
festusyuma
DDeno
Created by festusyuma on 10/31/2024 in #help
Running Deno Install with --entrypoint does not read package.json properly in docker
I am currently deploying deno to lambda using the docker image, I have some npm packages listed in my package.json as I was not getting type suggestions when using them in the deno.json file the problem now is, whenever I run deno Install --entrypoint main.ts I get this error for all the dependencies in package.json
Relative import path "zod" not prefixed with / or ./ or ../ and not in import map from "file:///var/task/main.ts"
Relative import path "zod" not prefixed with / or ./ or ../ and not in import map from "file:///var/task/main.ts"
but it goes away when I add the package to the deno.json file. This also works properly without the --entrypoint flag but it installs all the dependencies including devDependencies which is not ideal
11 replies