#Can't generate types after payload version 3.2.0

6 messages · Page 1 of 1 (latest)

lucid shale
#

So everything was working fine on 3.1.0.

On 3.2.0 However I get this error when running payload:generate

C:\~\node_modules\@payloadcms\richtext-lexical\src\getDefaultSanitizedEditorConfig.ts:3
import { cache } from 'react'
         ^

SyntaxError: The requested module 'react' does not provide an export named 'cache'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:131:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:213:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at bin (c:/~/node_modules/payload/dist/bin/index.js:47:27)
    at async start (file:///~/node_modules/payload/bin.js:30:7)

My setup is a little different than most though.

I have payload config in it's own pacakge

Which I then use in my BE and Nextjs app.

Any help would be apperciated. I don't want to get stuck in version 3.1.0 forever because of this issue

worthy parrot
#

I'm looking ino it. Could you test if 3.2.2 fixes it?

lucid shale
worthy parrot
#

Will be fixed in the next version!

lucid shale
#

@worthy parrot

This indeed works in 3.3.0.

Thanks a bunch.