Skip to content

A Very Crazy Bug You Can Never Imagine!!! #3372

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

Open
lujiazho opened this issue Apr 25, 2025 · 2 comments
Open

A Very Crazy Bug You Can Never Imagine!!! #3372

lujiazho opened this issue Apr 25, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@lujiazho
Copy link

描述bug
刷新时候,界面会崩溃,console出现如下报错

Live2D 2.1.00_1
live2d.min.js:1 profile : Desktop
live2d.min.js:1   [PROFILE_NAME] = Desktop
live2d.min.js:1   [USE_ADJUST_TRANSLATION] = false
live2d.min.js:1   [USE_CACHED_POLYGON_IMAGE] = false
live2d.min.js:1   [EXPAND_W] = 2
framework-87b0ab4b985605e5.js:9 NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at e (framework-87b0ab4b985605e5.js:9:89632)
    at e (framework-87b0ab4b985605e5.js:9:89705)
    at uK (framework-87b0ab4b985605e5.js:9:89757)
    at uq (framework-87b0ab4b985605e5.js:9:86429)
    at uQ (framework-87b0ab4b985605e5.js:9:86308)
    at uq (framework-87b0ab4b985605e5.js:9:86421)
    at uQ (framework-87b0ab4b985605e5.js:9:86308)
    at uq (framework-87b0ab4b985605e5.js:9:86421)
    at uQ (framework-87b0ab4b985605e5.js:9:86308)
    at uq (framework-87b0ab4b985605e5.js:9:86421)
a5 @ framework-87b0ab4b985605e5.js:9
a.componentDidCatch.t.callback @ framework-87b0ab4b985605e5.js:9
lX @ framework-87b0ab4b985605e5.js:9
uY @ framework-87b0ab4b985605e5.js:9
e @ framework-87b0ab4b985605e5.js:9
(anonymous) @ framework-87b0ab4b985605e5.js:9
oI @ framework-87b0ab4b985605e5.js:9
oC @ framework-87b0ab4b985605e5.js:9
r8 @ framework-87b0ab4b985605e5.js:9
(anonymous) @ framework-87b0ab4b985605e5.js:9Understand this error
main-d03e8f2d1c3879d7.js:1 NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at e (framework-87b0ab4b985605e5.js:9:89632)
    at e (framework-87b0ab4b985605e5.js:9:89705)
    at uK (framework-87b0ab4b985605e5.js:9:89757)
    at uq (framework-87b0ab4b985605e5.js:9:86429)
    at uQ (framework-87b0ab4b985605e5.js:9:86308)
    at uq (framework-87b0ab4b985605e5.js:9:86421)
    at uQ (framework-87b0ab4b985605e5.js:9:86308)
    at uq (framework-87b0ab4b985605e5.js:9:86421)
    at uQ (framework-87b0ab4b985605e5.js:9:86308)
    at uq (framework-87b0ab4b985605e5.js:9:86421)
Z @ main-d03e8f2d1c3879d7.js:1
fn @ main-d03e8f2d1c3879d7.js:1
componentDidCatch @ main-d03e8f2d1c3879d7.js:1
a.componentDidCatch.t.callback @ framework-87b0ab4b985605e5.js:9
lX @ framework-87b0ab4b985605e5.js:9
uY @ framework-87b0ab4b985605e5.js:9
e @ framework-87b0ab4b985605e5.js:9
(anonymous) @ framework-87b0ab4b985605e5.js:9
oI @ framework-87b0ab4b985605e5.js:9
oC @ framework-87b0ab4b985605e5.js:9
r8 @ framework-87b0ab4b985605e5.js:9
(anonymous) @ framework-87b0ab4b985605e5.js:9Understand this error
main-d03e8f2d1c3879d7.js:1 A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred

期望的正常结果

刷新不应该有任何问题,原本我以为是动态加载的问题,但是在cloudflare静态部署一样的出现这个问题

复现步骤

  1. 创建一个post,让它publish,这样你能在浏览器访问
  2. 页面只需要如下内容,你会发现有时候刷新就会崩溃,为了方便观察,我直接给screenshot

Image

  1. 但如果你改成这样,就没有任何问题

Image

  1. 哪怕是下面两种情况,也会有同样问题,归根结底,代码片段(目前测试了python)不能跟在公式片段后面!!!

Image

Image

环境

  • NotionNext版本 4.8.3
  • 主题 gitbook
  • 部署方案 本地和cloudflare都测试过,同样问题
  • 操作系统: macOS
  • 浏览器 chrome

补充说明

有bug可以理解,大佬可不可以大概说明一下这具体是为啥,跟底层实现解析notion方式有关吗?

@lujiazho lujiazho added the bug Something isn't working label Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@tangly1024 @lujiazho and others