Skip to content

编译报错 #383

@mikeFang1986

Description

@mikeFang1986

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.

console-app@1.0.0 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions