@payloadcms/richtext-lexical error when imported in Nuxt #11971
Unanswered
eliaszanotti
asked this question in
Q&A
Replies: 3 comments
-
It's the same as this error but with Payloadcms/lexical-richtext |
Beta Was this translation helpful? Give feedback.
0 replies
-
@eliaszanotti Is that a private repo? |
Beta Was this translation helpful? Give feedback.
0 replies
-
From what I'm seeing, lexical defines the exports correctly, so it's likely a bug in nitro. Here's the open issue: nitrojs/nitro#2562 I'll close this issue since there's nothing we can do here - nitro will need to fix the bug. Will keep this open as a discussion for visibility |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the Bug
I'm experiencing an error when using @payloadcms/richtext-lexical in my project that integrates Nuxt and Payload CMS with LocalAPI.
The error occurs at runtime and prevents the rich text editor from loading properly.
Error message:
[nuxt] [request error] [unhandled] [500] Cannot find module '/usr/src/app/.output/server/node_modules/@lexical/rich-text/LexicalRichText.node.mjs' imported from /usr/src/app/.output/server/node_modules/@payloadcms/richtext-lexical/dist/features/blockquote/server/index.js
My project has the following structure:
A nuxt folder for the frontend application
A payload folder for the Payload CMS backend
Link to the code that reproduces this issue
https://github.com/eliaszanotti/boilerplate-nuxt-payload
Reproduction Steps
Which area(s) are affected? (Select all that apply)
plugin: richtext-lexical
Environment Info
Beta Was this translation helpful? Give feedback.
All reactions