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

编译报错 #383

Open
mikeFang1986 opened this issue Dec 24, 2024 · 2 comments
Open

编译报错 #383

mikeFang1986 opened this issue Dec 24, 2024 · 2 comments

Comments

@mikeFang1986
Copy link

1、docker pull modelbox/modelbox-develop-tensorrt_7.1.3-cuda_10.2-ubuntu-x86_64:v1.6.1
2、docker run -itd --gpus all -e NVIDIA_DRIVER_CAPABILITIES=compute,utility,video -v D:\flNew\ModelBox:/home/share 2d755d499380
3、docker exec -it 6c bash
4、进入容器后,
mkdir /home/share/modelbox/build
cd /home/share/modelbox/build
cmake ..
make
5、编译报错:
[root@c9f080053cfa build]$ make
[ 0%] Building modelbox editor ui package..
✔ Browser application bundle generation complete.

[email protected] prepare
Warning: /home/share/modelbox/build/thirdparty/download/modelbox-webui/src/app/components/graph/graph.component.ts depends on 'd3-graphviz'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
up to date, audited 1638 packages in 16s

165 packages are looking for funding
Error: node_modules/@types/lodash/common/common.d.ts:262:65 - error TS1005: '?' expected.

262 type StringToNumber = T extends ${infer N extends number} ? N : never;
~
To address issues that do not require attention, run:
npm audit fix
Error: node_modules/@types/lodash/common/object.d.ts:1026:46 - error TS1005: '?' expected.
To address all issues (including breaking changes), run:
1026 : K extends ${infer N extends number} ? T[N]
~
Run npm audit for details.

Error: node_modules/@types/lodash/common/object.d.ts:1026:51 - error TS2536: Type 'N' cannot be used to index type 'T'.& pegjs src/app/components/graph/dotParser.pegjs dist/dotParser.js

1026 : K extends ${infer N extends number} ? T[N].
~~~~

Error: node_modules/@types/lodash/common/object.d.ts:1031:46 - error TS1005: '?' expected.

1031 : K extends ${infer N extends number} ? T[N]
~

Error: node_modules/@types/lodash/common/object.d.ts:1031:51 - error TS2536: Type 'N' cannot be used to index type 'T'.

1031 : K extends ${infer N extends number} ? T[N]
~~~~

Error: node_modules/@types/lodash/common/object.d.ts:1041:46 - error TS1005: '?' expected.

1041 : K extends ${infer N extends number}
~

thirdparty/download/build/modelbox-webui/CMakeFiles/modelbox-editor-webui.dir/build.make:60: recipe for target 'thirdparty/download/build/modelbox-webui/editor/index.html' failed
make[2]: *** [thirdparty/download/build/modelbox-webui/editor/index.html] Error 1
CMakeFiles/Makefile2:663: recipe for target 'thirdparty/download/build/modelbox-webui/CMakeFiles/modelbox-editor-webui.dir/all' failed
make[1]: *** [thirdparty/download/build/modelbox-webui/CMakeFiles/modelbox-editor-webui.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

@JiangXiaoDong123
Copy link

需要更改nodejs版本,使用16.20.2

nvm install 16.20.2 安装node版本

@JiangXiaoDong123
Copy link

可以加个微信,一起探讨,我的微信19115688835

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

2 participants