MapleLeaf 🍁
`Module not found file:///src/main.ts` when trying to deploy
I try to deploy, but it fails looking for
Same thing is happening in GitHub actions:
am i misunderstanding how the root and entrypoint options work? or is this a bug
src/main.ts
when I haven't even configured that
tale-tapestry on main via 🦕 v2.1.1 via v20.18.0 took 4s
❯ deployctl deploy --project=dry-squirrel-76 --include=dist
ℹ Using config file '/home/maple/dev/tale-tapestry/deno.json'
⚠ No entrypoint provided with either the --entrypoint arg or a config file. I've guessed 'main.ts' for you.
ℹ Is this wrong? Please let us know in https://github.com/denoland/deployctl/issues/new
✔ Deploying to project dry-squirrel-76.
✔ Entrypoint: /home/maple/dev/tale-tapestry/main.ts
ℹ Uploading all files from the current dir (/home/maple/dev/tale-tapestry)
✔ Found 9 assets.
✔ No new assets to upload.
error: Uncaught (in promise) APIError: The deployment failed: Module not found "file:///src/main.ts".
throw new APIError(json.code, json.message, xDenoRay);
^
at API.#requestStream (https://jsr.io/@deno/deployctl/1.13.0/src/utils/api.ts:196:13)
at eventLoopTick (ext:core/01_core.js:175:7)
at async API.#requestJsonStream (https://jsr.io/@deno/deployctl/1.13.0/src/utils/api.ts:217:20)
at async deploy (https://jsr.io/@deno/deployctl/1.13.0/src/subcommands/deploy.ts:322:20)
at async default (https://jsr.io/@deno/deployctl/1.13.0/src/subcommands/deploy.ts:166:3)
at async https://jsr.io/@deno/deployctl/1.13.0/deployctl.ts:107:5
tale-tapestry on main via 🦕 v2.1.1 via v20.18.0 took 3s
❯ deployctl deploy --project=dry-squirrel-76 --include=dist --entrypoint=main.ts
ℹ Using config file '/home/maple/dev/tale-tapestry/deno.json'
✔ Deploying to project dry-squirrel-76.
✔ Entrypoint: /home/maple/dev/tale-tapestry/main.ts
ℹ Uploading all files from the current dir (/home/maple/dev/tale-tapestry)
✔ Found 9 assets.
✔ No new assets to upload.
error: Uncaught (in promise) APIError: The deployment failed: Module not found "file:///src/main.ts".
throw new APIError(json.code, json.message, xDenoRay);
^
at API.#requestStream (https://jsr.io/@deno/deployctl/1.13.0/src/utils/api.ts:196:13)
at eventLoopTick (ext:core/01_core.js:175:7)
at async API.#requestJsonStream (https://jsr.io/@deno/deployctl/1.13.0/src/utils/api.ts:217:20)
at async deploy (https://jsr.io/@deno/deployctl/1.13.0/src/subcommands/deploy.ts:322:20)
at async default (https://jsr.io/@deno/deployctl/1.13.0/src/subcommands/deploy.ts:166:3)
at async https://jsr.io/@deno/deployctl/1.13.0/deployctl.ts:107:5
tale-tapestry on main via 🦕 v2.1.1 via v20.18.0 took 4s
❯ deployctl deploy --project=dry-squirrel-76 --include=dist
ℹ Using config file '/home/maple/dev/tale-tapestry/deno.json'
⚠ No entrypoint provided with either the --entrypoint arg or a config file. I've guessed 'main.ts' for you.
ℹ Is this wrong? Please let us know in https://github.com/denoland/deployctl/issues/new
✔ Deploying to project dry-squirrel-76.
✔ Entrypoint: /home/maple/dev/tale-tapestry/main.ts
ℹ Uploading all files from the current dir (/home/maple/dev/tale-tapestry)
✔ Found 9 assets.
✔ No new assets to upload.
error: Uncaught (in promise) APIError: The deployment failed: Module not found "file:///src/main.ts".
throw new APIError(json.code, json.message, xDenoRay);
^
at API.#requestStream (https://jsr.io/@deno/deployctl/1.13.0/src/utils/api.ts:196:13)
at eventLoopTick (ext:core/01_core.js:175:7)
at async API.#requestJsonStream (https://jsr.io/@deno/deployctl/1.13.0/src/utils/api.ts:217:20)
at async deploy (https://jsr.io/@deno/deployctl/1.13.0/src/subcommands/deploy.ts:322:20)
at async default (https://jsr.io/@deno/deployctl/1.13.0/src/subcommands/deploy.ts:166:3)
at async https://jsr.io/@deno/deployctl/1.13.0/deployctl.ts:107:5
tale-tapestry on main via 🦕 v2.1.1 via v20.18.0 took 3s
❯ deployctl deploy --project=dry-squirrel-76 --include=dist --entrypoint=main.ts
ℹ Using config file '/home/maple/dev/tale-tapestry/deno.json'
✔ Deploying to project dry-squirrel-76.
✔ Entrypoint: /home/maple/dev/tale-tapestry/main.ts
ℹ Uploading all files from the current dir (/home/maple/dev/tale-tapestry)
✔ Found 9 assets.
✔ No new assets to upload.
error: Uncaught (in promise) APIError: The deployment failed: Module not found "file:///src/main.ts".
throw new APIError(json.code, json.message, xDenoRay);
^
at API.#requestStream (https://jsr.io/@deno/deployctl/1.13.0/src/utils/api.ts:196:13)
at eventLoopTick (ext:core/01_core.js:175:7)
at async API.#requestJsonStream (https://jsr.io/@deno/deployctl/1.13.0/src/utils/api.ts:217:20)
at async deploy (https://jsr.io/@deno/deployctl/1.13.0/src/subcommands/deploy.ts:322:20)
at async default (https://jsr.io/@deno/deployctl/1.13.0/src/subcommands/deploy.ts:166:3)
at async https://jsr.io/@deno/deployctl/1.13.0/deployctl.ts:107:5
Run denoland/deployctl@v1
with:
project: dry-squirrel-76
root: ./
entrypoint: ./main.ts
include: ./dist
Project: dry-squirrel-76
Entrypoint: file:///src/main.ts
Uploading 0 file(s) (total 0 bytes)
Error: APIError: The deployment failed: Module not found "file:///src/main.ts".
Run denoland/deployctl@v1
with:
project: dry-squirrel-76
root: ./
entrypoint: ./main.ts
include: ./dist
Project: dry-squirrel-76
Entrypoint: file:///src/main.ts
Uploading 0 file(s) (total 0 bytes)
Error: APIError: The deployment failed: Module not found "file:///src/main.ts".
3 replies
Duplicate package versions
I'm getting this TS error:
(i assume) it's caused by two different versions of
Type 'OAuthConfig<any>' is not assignable to type 'AuthProviderConfig'.
Type 'OIDCConfig<any>' is not assignable to type 'AuthProviderConfig'.
Type 'OIDCConfig<any>' is not assignable to type 'OIDCConfig<any> & InternalProviderOptions'.
Type 'import("file:///home/maple/dev/tale-tapestry/$node_modules/.deno/@auth+core@0.37.4/$node_modules/@auth/core/providers/oauth").OIDCConfig<any>' is not assignable to type 'import("file:///home/maple/dev/tale-tapestry/$node_modules/.deno/@auth+core@0.36.0/$node_modules/@auth/core/providers/oauth").OIDCConfig<any>'.
Types of property 'client' are incompatible.
Type 'Partial<Client & { token_endpoint_auth_method: string; }> | undefined' is not assignable to type 'Partial<Client> | undefined'.
Type 'Partial<Client & { token_endpoint_auth_method: string; }>' is not assignable to type 'Partial<Client>'.
Types of property 'token_endpoint_auth_method' are incompatible.
Type 'string | undefined' is not assignable to type 'ClientAuthenticationMethod | undefined'.
Type 'string' is not assignable to type 'ClientAuthenticationMethod | undefined'.deno-ts(2322)
Type 'OAuthConfig<any>' is not assignable to type 'AuthProviderConfig'.
Type 'OIDCConfig<any>' is not assignable to type 'AuthProviderConfig'.
Type 'OIDCConfig<any>' is not assignable to type 'OIDCConfig<any> & InternalProviderOptions'.
Type 'import("file:///home/maple/dev/tale-tapestry/$node_modules/.deno/@auth+core@0.37.4/$node_modules/@auth/core/providers/oauth").OIDCConfig<any>' is not assignable to type 'import("file:///home/maple/dev/tale-tapestry/$node_modules/.deno/@auth+core@0.36.0/$node_modules/@auth/core/providers/oauth").OIDCConfig<any>'.
Types of property 'client' are incompatible.
Type 'Partial<Client & { token_endpoint_auth_method: string; }> | undefined' is not assignable to type 'Partial<Client> | undefined'.
Type 'Partial<Client & { token_endpoint_auth_method: string; }>' is not assignable to type 'Partial<Client>'.
Types of property 'token_endpoint_auth_method' are incompatible.
Type 'string | undefined' is not assignable to type 'ClientAuthenticationMethod | undefined'.
Type 'string' is not assignable to type 'ClientAuthenticationMethod | undefined'.deno-ts(2322)
@auth/core
, the old one, and the new one I just upgraded to via deno outdated --update --latest
in pnpm, I'd resolve this with pnpm dedupe
, but I don't see an obvious way to do this with deno? I tried removing the deno.lock
and node_modules
and reinstalling, but I'm still getting the same issue :thinkspin:3 replies