NotionX / NotionX/react-notion-x

The Minimal Example has Errors

Open
#475 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.4k
Forks
645
PR merge metrics
No merged PRs in 30d

Description

Description

Some errors with the minimal example due to it assuming it runs within the main repo

  • @next/bundle-analyzer isn't in the package.json, so delete from next.config.js all references to it.
  • yarn dev now errors because yarn.lock refers to deps that are only installed in the context of the main repo. I'm only stealing a slice of the main repo.
    the yarn.lock is invalid now, so remove it and yarn again.
    yarn dev works now
Notion Test Page ID

not-relevant

How to solve

create a separate repo for the examples so the examples don't make any assumptions about what deps it has available.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the minimal example, package.json, next.config.js, and yarn.lock, then run yarn dev to reproduce the dependency assumptions. The work is done when the examples live in a separate repository and run without relying on dependencies from the main repo.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.