Skip to content
Discussion options

You must be logged in to vote

An update - this is caused by your use and import from @lexical/markdown - see this PR for a change we had to make because of that package:

#9382

The long and short is that for some reason, that package breaks tsx transpilation and Node fails silently. It looks to be because of prism and some type of circular dependency scenario with async imports. Low-level node stuff.

@AlessioGr will know more here but here's what you can do for now:

Change this import:

import { $convertToMarkdownString, TRANSFORMERS } from '@lexical/markdown';

To this:

import { $convertToMarkdownString, TRANSFORMERS } from '@payloadcms/richtext-lexical/lexical/markdown';

I have confirmed that this resolves the issue in…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by drewbo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
status: needs-triage Possible bug which hasn't been reproduced yet
2 participants
Converted from issue

This discussion was converted from issue #11081 on February 10, 2025 22:01.