NotionX / NotionX/react-notion-x

Image access error associated with a NotionAPI and defaultMapImageUrl

Open
#355 1 comment 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

Hello, I'm using the library you created. Thank you.

I'm having the same issue as #211

I'm looking at the code you wrote and I'm studying how various methods play a role.

I'm guessing that the issue I'm experiencing is related to a method called defaultMapImageUrl, and I found one while I was looking for a related code.

https://github.com/NotionX/react-notion-x/blob/bf81f2aa75c60b785e850b363901f47b9a2cd464/packages/react-notion-x/src/context.tsx#L13

The Function 'defaultMapImageUrl' was not found in the utils file

Is the problem I'm having coming from here?

As a junior, I would also like to ask you a question: How can I check the function that 'mapImageUrl' is doing? Because these methods are not written in official documents. it i Is the only way to check the code from scratch?

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 with packages/react-notion-x/src/context.tsx at the referenced defaultMapImageUrl definition and inspect the related utils file and mapImageUrl usage. Reproduce the reported image access error, then determine whether the missing function explains it and document the expected behavior or required change.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, react, typescript
Domain
frontend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.