You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠ ./node_modules/payload/dist/config/load.js
require.extensions is not supported by webpack. Use a loader instead.
Import trace for requested module:
./node_modules/payload/dist/config/load.js
./node_modules/payload/dist/payload.js
./node_modules/payload/dist/index.js
./payload/get-payload.ts
./app/(marketing)/page.tsx
./node_modules/payload/node_modules/express/lib/view.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
./node_modules/payload/node_modules/express/lib/view.js
./node_modules/payload/node_modules/express/lib/application.js
./node_modules/payload/node_modules/express/lib/express.js
./node_modules/payload/node_modules/express/index.js
./node_modules/payload/dist/initHTTP.js
./node_modules/payload/dist/index.js
./payload/get-payload.ts
./app/(marketing)/page.tsx
Which I'm not really sure how it happens? and how do we have to fix this?
--
In case this can be help, this is my get-payload.ts (which basically is the same as in an example)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I tried to setup Payload to my existing Next.js and Supabase.
Setup
I followed the guide from a custom-server here.
So basically I have copied and configured these files from an example
With some customized in
payload.config.ts
to usepostgresAdapter
from@payloadcms/db-postgres
.Issue
On frontend Next.js I can run the server normally. But when I add a code to fetch the payload in Next.js app from these code
I saw an error in a terminal like this
Which I'm not really sure how it happens? and how do we have to fix this?
--
In case this can be help, this is my get-payload.ts (which basically is the same as in an example)
Beta Was this translation helpful? Give feedback.
All reactions