Uncaught (in promise) TypeError: Relative import path "@payloadcms/next/withPayload" not prefixed
Trying to deno-ify my payloadcms project, and I'm facing import issues related to deno.json.
And the default template project does:
next.config.mjs
Error:
I assume this is something to do with import/importMaps but I tried different combinations and it's failing still.
How do I fix this?2 Replies
I had to enable
"nodeModulesDir": true,
, now it runs
this no longer works as a workaround
was looking forward to trying out deno.json instead of package.json, but the constant errors don't seem to be worth it.
moving all dependencies to package.json makes it workIf you feel like this is something that should be fixed in Deno be sure to open an issue here https://github.com/denoland/deno/issues . That's where the folks working on Deno itself hang out. The discord #help space is more of a "users helping users" kind of thing