NotionX / NotionX/react-notion-x

Uncaught SyntaxError: Unexpected token '!' (at vendors~main.chunk.js:22685:44)

Open
#425 2 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

If i attached the codes below to my homepage, the error of the title of this thread will happen and nothing display on the browser.

If i made the codes as comments, my homepage operates well.

I am very embarrased because any syntax error has not been reported here. I am using cloud IDE 'codesandbox'

import { NotionAPI } from "notion-client";
const notion = new NotionAPI();

const recordMap = (async () => {
  await notion.getPage("b6b76d94704f498fb7c1fb19c332a3f9");
})();

import { NotionRenderer } from "react-notion-x";
Notion Test Page ID

b6b76d94704f498fb7c1fb19c332a3f9

https://dsclabel.notion.site/Do-you-know-b6b76d94704f498fb7c1fb19c332a3f9

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

Reproduce the provided snippet in CodeSandbox with the notion-client and react-notion-x imports, then inspect the generated vendors~main.chunk.js location reported in the error. Compare behavior with those imports commented out and document whether the failure is reproducible and what source-level change is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.