Replies: 1 comment 2 replies
-
Hey @creonico there may be a few different things going on here.
You can find an example of how to use all of this in the 3.0 Demo: Check out your Node version - maybe that will fix your issue. I'll convert this to a discussion though so we can continue to help accordingly. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Documentation Issue
I am trying to use payloadcms outside of nextjs as described in this doc https://payloadcms.com/docs/beta/local-api/outside-nextjs, but I get the following error when trying to import importConfig from payload/node:
Here is my server.ts script, i run this in node with
ts-node server.ts
:The importConfig is not even used in this example from the doc, but the line
const payload = await getPayload({ config })
uses a variable config that is never declared in this example.In this doc, however, https://payloadcms.com/docs/beta/local-api/overview#importing-it, it does show how to use the importConfig function, so I tried this method but that is where I get the error above.
Additional Details
I tried to running the same script in deno with
deno run server.ts
, but I get this error:Beta Was this translation helpful? Give feedback.
All reactions