Skip to content

Return errors when importing unsupported content types #87

Open

Description

@plc

Currently if you import a Notion page that has either a database or a checkbox, the library appears to simply not load — ideally the library should return an error and explain what the unsupported content is, eg:

"This Notion document includes a Database which we cannot import, please remove the Database to render this page"

Activity

  1. vczb commented on Sep 20, 2021

    @vczb

    Hi, would you like the message "This Notion document includes a Database which we cannot import, please remove the Database to render this page" on the screen? or as an alert ?

    I see a log similar at you like to say on this file (src/block.tsx), line 490

    Captura de tela de 2021-09-20 16-40-30

  2. plc commented on Oct 6, 2021

    @plc
    Author

    Yeah exactly - so sorry for the slow reply.

  3. webbdays commented on Jan 7, 2023

    @webbdays

    I would like to work on this.

  4. JaneX8 commented on Nov 29, 2023

    @JaneX8

    I don't know why it's not mentioned here, but there is a bounty on this issue of USD 150,-.
    https://gitpay.me/#/task/534/return-errors-when-importing-unsupported-content-types

  5. vibhuti019 commented on Apr 5, 2024

    @vibhuti019

    @webbdays Are you working on this issue ?

  6. webbdays commented on Apr 5, 2024

    @webbdays

    I would like to.
    But no one responded.
    Will look into this issue this weekend.

  7. webbdays commented on Apr 6, 2024

    @webbdays

    dropping.

  8. pnogemane commented on Nov 10, 2024

    @pnogemane

    Is this issue still available to pick up?

  9. gscofano commented on Jun 22, 2025

    @gscofano

    @plc I would like to work on this. Is this feature still needed?

  10. kallal79 commented on Oct 22, 2025

    @kallal79

    Hi @plc, Please assign me #87. I’ll implement clear error handling for unsupported Notion content types. Ready to start.

  11. hieu-lee commented on May 11, 2026

    @hieu-lee

    Opened PR #130 with a focused implementation for this: #130

    It renders clear unsupported-block errors by default, preserves the previous empty-placeholder behavior behind showUnsupportedBlockErrors={false}, supports a custom renderUnsupportedBlock fallback, and keeps existing customBlockComponents behavior intact.

    Verified with npm test -- --runInBand, npm run build, npm run lint, and git diff --check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions