Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lexical => JSX converter: Link converter: found internal link, but internalDocToHref is not provided #10197

Open
romanslonov opened this issue Dec 27, 2024 · 1 comment
Labels
status: needs-triage Possible bug which hasn't been reproduced yet

Comments

@romanslonov
Copy link

Describe the Bug

Got an error when trying to create a internal link in richtext editor to another document.

Lexical => JSX converter: Link converter: found internal link, but internalDocToHref is not provided

Link to the code that reproduces this issue

https://github.com/romanslonov/payloadcms-link-to-document-issue

Reproduction Steps

  1. pnpx create-payload-app@latest
  2. In admin panel create a few posts (or seed) and add a link to another document
    Image
  3. Visit a post where you add the link
  4. See the error
    Image

Which area(s) are affected? (Select all that apply)

plugin: richtext-lexical

Environment Info

> [email protected] payload /Users/romanslonov/Work/payloadcms-link-to-document-issue
> cross-env NODE_OPTIONS=--no-deprecation payload "info"


Binaries:
  Node: 22.12.0
  npm: 10.9.0
  Yarn: N/A
  pnpm: 9.15.0
Relevant Packages:
  payload: 3.11.0
  next: 15.1.3
  @payloadcms/db-mongodb: 3.11.0
  @payloadcms/email-nodemailer: 3.11.0
  @payloadcms/graphql: 3.11.0
  @payloadcms/live-preview: 3.11.0
  @payloadcms/live-preview-react: 3.11.0
  @payloadcms/next/utilities: 3.11.0
  @payloadcms/payload-cloud: 3.11.0
  @payloadcms/plugin-form-builder: 3.11.0
  @payloadcms/plugin-nested-docs: 3.11.0
  @payloadcms/plugin-redirects: 3.11.0
  @payloadcms/plugin-search: 3.11.0
  @payloadcms/plugin-seo: 3.11.0
  @payloadcms/richtext-lexical: 3.11.0
  @payloadcms/translations: 3.11.0
  @payloadcms/ui/shared: 3.11.0
  react: 19.0.0
  react-dom: 19.0.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.2.0: Fri Dec  6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 10
@romanslonov romanslonov added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Dec 27, 2024
@amiraryan1996
Copy link

I have the same issue in website template, when linking internally it errors:
Lexical => JSX converter: Link converter: found internal link, but internalDocToHref is not provided
I checked database, just # stores for internal links! while external links work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs-triage Possible bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants