Skip to content
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

mococo-sql-languages 中的 website 无法正常运行 #131

Closed
ImprovementSugar opened this issue Jun 2, 2024 · 7 comments
Closed

mococo-sql-languages 中的 website 无法正常运行 #131

ImprovementSugar opened this issue Jun 2, 2024 · 7 comments

Comments

@ImprovementSugar
Copy link

我按照官网的方式进行本地dev,执行如下命令

Dev: cheat sheet

  • initial setup

    pnpm install
  • open the dev web

    pnpm watch-esm
    cd website
    pnpm install
    pnpm dev

页面能够发正常访问,但是编辑SQL的时候出现 Error: Maximum call stack size exceeded 报错
我的 pnpm 版本为 9.0.6 ,node版本是 18.20.3

image

@ImprovementSugar
Copy link
Author

当我选择不同SQL语言的时候,无法正常渲染,报错:Warning: Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.

image

@liuxy0551
Copy link
Collaborator

我们本地的 pnpm 版本目前是 6.x,可以尝试一下 [email protected]

@ImprovementSugar
Copy link
Author

好的,应该是我版本太高

@HaydenOrz
Copy link
Collaborator

好的,应该是我版本太高

应该不是pnpm 的问题,这是website依赖的 molecule (Web IDE UI 框架) 的问题,这个warning 并不会影响到功能,我们尝试正在升级 molecule

#97

@mortalYoung
Copy link
Collaborator

Error: Maximum call stack size exceeded

这个原因是因为 Molecule 导致的,可以把 @dtinsight/molecule 的版本锁到 1.3.4,详见 Molecule#887

至于 warning 可以不用管,也是 Molecule 引起的,但是不会有影响,可以暂时先忽略

@ImprovementSugar
Copy link
Author

好的,我我试下这个方法

@ImprovementSugar
Copy link
Author

非常感谢,使用 @dtinsight/molecule 的1.3.4之后,程序运行正常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants