Djkáťo
Djkáťo
Explore posts from servers
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
6 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.
6 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)
6 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
6 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
6 replies
CDCloudflare Developers
Created by Djkáťo on 11/25/2024 in #general-help
CF Pages: updating page via gh push adds CORS issues, breaks audioplayback / file serving
remember to add an appropriate PNPM_VERSION env to build future ppl, cause apparently wrong package versions quietly fail and build successfully while breaking the site. The console erros were fixed by a cache purge. Cheers
8 replies
CDCloudflare Developers
Created by Djkáťo on 11/25/2024 in #general-help
CF Pages: updating page via gh push adds CORS issues, breaks audioplayback / file serving
Okay I think the culprit is using npm on CF and pnpm to build locally
8 replies
CDCloudflare Developers
Created by Djkáťo on 11/25/2024 in #general-help
CF Pages: updating page via gh push adds CORS issues, breaks audioplayback / file serving
The music files are accessible, so it's just some specific js that doesn't work for some reason...
8 replies
CDCloudflare Developers
Created by Djkáťo on 11/25/2024 in #general-help
CF Pages: updating page via gh push adds CORS issues, breaks audioplayback / file serving
but the build works when I tested it locally before deploying
8 replies
CDCloudflare Developers
Created by Djkáťo on 11/25/2024 in #general-help
CF Pages: updating page via gh push adds CORS issues, breaks audioplayback / file serving
It doesn't work on either site.pages.dev or site.com
8 replies
CDCloudflare Developers
Created by Djkáťo on 11/25/2024 in #general-help
CF Pages: updating page via gh push adds CORS issues, breaks audioplayback / file serving
I found others with the same issue online mentioning cf, they said redeploying helps and that it's a rare issue or smt, but I tried reverting and redeploying and the came back again
8 replies