{{ message }}
fix: fix @apitable/widget-sdk dependencie#1678
Open
boqingren wants to merge 1 commit intoapitable:developfrom
Open
fix: fix @apitable/widget-sdk dependencie#1678boqingren wants to merge 1 commit intoapitable:developfrom
boqingren wants to merge 1 commit intoapitable:developfrom
Conversation
|
允许你 room-server 遇到相同的问题!点赞, 可以完美解决。 |
|
同是m1芯片,其他问题均已解决,但是make install拉下来的canvas@2.9.1似乎m系列芯片无法使用,楼主能发下自己的canvas@2.9.1吗?万分感谢🙏 报错信息: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

发现几个问题,以及解决的方案如下:
一、前置说明:
二、启动
room-serve时报错:Error: The module xxx/canvas.node was compiled against a different Node.js version using2.1 当我的 NodeJS 版本是
v16.15.0,并且在命令行输出make run,然后输入2启动room-serve时,出现报错如下:2.2 解决的方式是把 NodeJS 的版本切换到
v18.17.0:三、启动
web-server时报错:Module not found: Can't resolve '@apitable/widget-sdk'3.1 当我的 NodeJS 版本是
v16.15.0,并且在命令行输出make run,然后输入3启动web-serve时,出现报错如下:3.2 调试后发现
packages/datasheet/package.json对@apitable/widget-sdk这个依赖的引用有些小问题,需要做如下的修改:3.3 需要注意的是
packages/datasheet/package.json中对@apitable\/widget-sdk的依赖修复后需要重新执行如下命令:四、启动
web-serve时报错:Error: The module xxx/canvas.node was compiled against a different Node.js version using4.1 当我修复了
Module not found: Can't resolve '@apitable/widget-sdk'时,启动命令行输出make run,然后输入3启动web-serve,报了如下的错误:4.2 解决的方式是把 NodeJS 的版本切换到
v18.17.0:五、基于我本人的实验条件和系统版本,对上面的启动过程做一个简单的总结:
make install时,按照官方的文档使用 NodeJS 的v16.15.0。backend-server时,NodeJS 的v16.15.0并没有报错,所以 NodeJS 的v16.15.0在这个阶段是没有问题的。room-serve和web-serve时,NodeJS 的需要切换成v18.17.0(其他版本的没有测试过)。packages/datasheet/package.json中的"@apitable/widget-sdk": "*"需要改成"@apitable/widget-sdk": "workspace:*"。databus-server阶段的启动似乎仅仅是和docker相关,和 NodeJS 无关。