Christoph Bratschi

Results 102 comments of Christoph Bratschi

Payload is still using Mongoose 6.x where 8.x was just released: https://www.npmjs.com/package/mongoose. I am using MongoDB 7.x and never had any issues with Mongoose 6.x.

Is there a Next.js App Router example?

@bafxyz thanks, trying it right now. Just failed with adapting the SWC example code.

Well, if I use a client component, the following error occurs: ``` ./node_modules/babel-plugin-macros/node_modules/cosmiconfig/dist/readFile.js:9:0 Module not found: Can't resolve 'fs' ``` And in case of a server component, t is not...

@thekip thanks, the SWC plugin works fine for client components (first failed but after switching to server component and back to client component suddenly was working). Are Server Components supported...

@JarrodMFlesch the error happens for instance after saving resized images using non-local image storage. In that case Payload uses node-fetch to retrieve the original image data. This error does not...

Reported this here with some workarounds: https://github.com/payloadcms/payload/issues/2181#issuecomment-1997933850

@Cool-Programmer no, we dropped this feature.

Code snippet for Next.js SSR: ``` import { cookies } from 'next/headers'; ... function MyComponent() { const cookieStore = cookies(); if (!cookieStore.has('payload-token')) { return null: } ... } ``` This...

Visual Studio 2013 Ultimate Update 4 fails on Windows 8.1: jpeg_decoder.cpp ...\node_modules\lwip\src\lib\gif\gif_lib.h(22): fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory [...\node_modules\lwip\build\lwip_decoder.vcxproj] This is a C99...