Djkáťo
Djkáťo
DDeno
Created by Djkáťo on 4/9/2025 in #help
Uncaught (in promise) TypeError: Relative import path "@payloadcms/next/withPayload" not prefixed
moving all dependencies to package.json makes it work
7 replies
DDeno
Created by Djkáťo on 4/9/2025 in #help
Uncaught (in promise) TypeError: Relative import path "@payloadcms/next/withPayload" not prefixed
was looking forward to trying out deno.json instead of package.json, but the constant errors don't seem to be worth it.
7 replies
DDeno
Created by Djkáťo on 4/9/2025 in #help
Uncaught (in promise) TypeError: Relative import path "@payloadcms/next/withPayload" not prefixed
$: deno task --filter "backend" dev
deno task --filter "backend" dev
Warning `"nodeModulesDir": true` is deprecated in Deno 2.0. Use `"nodeModulesDir": "auto"` instead
at file:.../monorepo/deno.json
Warning The following packages are deprecated:
┠─ npm:@esbuild-kit/esm-loader@2.6.5 (Merged into tsx: https://tsx.is)
┠─ npm:@esbuild-kit/core-utils@3.3.2 (Merged into tsx: https://tsx.is)
┖─ npm:node-domexception@1.0.0 (Use your platform's native DOMException instead)
Task dev next dev
Warning `"nodeModulesDir": true` is deprecated in Deno 2.0. Use `"nodeModulesDir": "auto"` instead
at file:.../monorepo/deno.json
Warning The following packages are deprecated:
┠─ npm:@esbuild-kit/esm-loader@2.6.5 (Merged into tsx: https://tsx.is)
┠─ npm:@esbuild-kit/core-utils@3.3.2 (Merged into tsx: https://tsx.is)
┖─ npm:node-domexception@1.0.0 (Use your platform's native DOMException instead)
error: Uncaught (in promise) TypeError: Relative import path "@payloadcms/next/withPayload" not prefixed with / or ./ or ../ and not in import map from "file:.../monorepo/backend/next.config.mjs"
at file:.../monorepo/backend/next.config.mjs:1:29
at async loadConfig (file:.../monorepo/node_modules/.deno/next@15.2.3/node_modules/next/dist/server/config.js:964:36)
at async Module.nextDev (file:.../monorepo/node_modules/.deno/next@15.2.3/node_modules/next/dist/cli/next-dev.js:189:14)
$: deno task --filter "backend" dev
deno task --filter "backend" dev
Warning `"nodeModulesDir": true` is deprecated in Deno 2.0. Use `"nodeModulesDir": "auto"` instead
at file:.../monorepo/deno.json
Warning The following packages are deprecated:
┠─ npm:@esbuild-kit/esm-loader@2.6.5 (Merged into tsx: https://tsx.is)
┠─ npm:@esbuild-kit/core-utils@3.3.2 (Merged into tsx: https://tsx.is)
┖─ npm:node-domexception@1.0.0 (Use your platform's native DOMException instead)
Task dev next dev
Warning `"nodeModulesDir": true` is deprecated in Deno 2.0. Use `"nodeModulesDir": "auto"` instead
at file:.../monorepo/deno.json
Warning The following packages are deprecated:
┠─ npm:@esbuild-kit/esm-loader@2.6.5 (Merged into tsx: https://tsx.is)
┠─ npm:@esbuild-kit/core-utils@3.3.2 (Merged into tsx: https://tsx.is)
┖─ npm:node-domexception@1.0.0 (Use your platform's native DOMException instead)
error: Uncaught (in promise) TypeError: Relative import path "@payloadcms/next/withPayload" not prefixed with / or ./ or ../ and not in import map from "file:.../monorepo/backend/next.config.mjs"
at file:.../monorepo/backend/next.config.mjs:1:29
at async loadConfig (file:.../monorepo/node_modules/.deno/next@15.2.3/node_modules/next/dist/server/config.js:964:36)
at async Module.nextDev (file:.../monorepo/node_modules/.deno/next@15.2.3/node_modules/next/dist/cli/next-dev.js:189:14)
7 replies
DDeno
Created by Djkáťo on 4/9/2025 in #help
Uncaught (in promise) TypeError: Relative import path "@payloadcms/next/withPayload" not prefixed
this no longer works as a workaround
7 replies
DDeno
Created by Djkáťo on 4/9/2025 in #help
Uncaught (in promise) TypeError: Relative import path "@payloadcms/next/withPayload" not prefixed
I had to enable "nodeModulesDir": true,, now it runs
7 replies