首页 Paddle.js 帖子详情
paddle.js打包报错
收藏
快速回复
Paddle.js 问答部署 504 0
paddle.js打包报错
收藏
快速回复
Paddle.js 问答部署 504 0

EasyDL训练好的浏览器模型,部署体验是正常的,下载SDK到本机,npm打包的时候报错,请问如何解决?非常感谢

D:\js\det5patt>npm run build

> easyedge-js-jdk-demo@0.1.0 build
> vue-tsc --noEmit && vite build

src/components/Uploader.vue:8:25 - error TS2304: Cannot find name 'PropType'.

8 type: Object as PropType<{blob: string; entity: HTMLImageElement}>,
~~~~~~~~

src/App.vue:10:27 - error TS2339: Property 'default' does not exist on type '{ labels: string[]; }'.

10 const label = labelModule.default.labels;
~~~~~~~

src/components/Uploader.vue:21:22 - error TS2345: Argument of type '"changeImg"' is not assignable to parameter of type '"update:modelValue"'.

21 emit('changeImg', {
~~~~~~~~~~~

src/App.vue:32:45 - error TS2339: Property 'init' does not exist on type '{ inited: Ref; predicting: Ref; result: Ref; predict(img: HTMLImageElement): Promise; }'.

32 const {inited, result, predicting, predict, init} = usePretict(isCls);
~~~~

node_modules/element-plus/es/components/table-v2/src/components/sort-icon.d.ts:5:37 - error TS2339: Property 'class' does not exist on type 'IntrinsicAttributes'.

5 class?: JSX.IntrinsicAttributes['class'];
~~~~~~~

node_modules/element-plus/es/components/table-v2/src/types.d.ts:92:37 - error TS2339: Property 'class' does not exist on type 'IntrinsicAttributes'.

92 class?: JSX.IntrinsicAttributes['class'];
~~~~~~~

node_modules/element-plus/lib/components/table-v2/src/components/sort-icon.d.ts:5:37 - error TS2339: Property 'class' does not exist on type 'IntrinsicAttributes'.

5 class?: JSX.IntrinsicAttributes['class'];
~~~~~~~

node_modules/element-plus/lib/components/table-v2/src/types.d.ts:92:37 - error TS2339: Property 'class' does not exist on type 'IntrinsicAttributes'.

92 class?: JSX.IntrinsicAttributes['class'];
~~~~~~~


Found 8 errors in 6 files.

Errors Files
2 src/components/Uploader.vue:8
2 src/App.vue:10
1 node_modules/element-plus/es/components/table-v2/src/components/sort-icon.d.ts:5
1 node_modules/element-plus/es/components/table-v2/src/types.d.ts:92
1 node_modules/element-plus/lib/components/table-v2/src/components/sort-icon.d.ts:5
1 node_modules/element-plus/lib/components/table-v2/src/types.d.ts:92

0
收藏
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户