-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
I tried to build library from the source code to debug it (npm link
library to my app):
➜ comfyui-sdk git:(main) ✗ npm run build
> @saintno/comfyui-sdk@0.2.39 build
> bun build.ts
JSCompiling Building...
JSCompiling Done!
TypeCompiling Building...
src/client.ts(514,32): error TS2345: Argument of type 'Blob | Buffer<ArrayBufferLike>' is not assignable to parameter of type 'Blob'.
Type 'Buffer<ArrayBufferLike>' is missing the following properties from type 'Blob': size, type, arrayBuffer, bytes, and 4 more.
src/client.ts(557,32): error TS2345: Argument of type 'Blob | Buffer<ArrayBufferLike>' is not assignable to parameter of type 'Blob'.
Type 'Buffer<ArrayBufferLike>' is missing the following properties from type 'Blob': size, type, arrayBuffer, bytes, and 4 more.
18 | function checkDiagnosticsErrors(diagnostics, failMessage) {
19 | if (diagnostics.length === 0) {
20 | return;
21 | }
22 | (0, logger_1.errorLog)(ts.formatDiagnostics(diagnostics, formatDiagnosticsHost).trim());
23 | throw new Error(failMessage);
^
error: Compiled with errors
at checkDiagnosticsErrors (/Users/user123/Workspace/jp/comfyui-sdk/node_modules/dts-bundle-generator/dist/helpers/check-diagnostics-errors.js:23:11)
at checkProgramDiagnosticsErrors (/Users/user123/Workspace/jp/comfyui-sdk/node_modules/dts-bundle-generator/dist/helpers/check-diagnostics-errors.js:15:5)
at getDeclarationFiles (/Users/user123/Workspace/jp/comfyui-sdk/node_modules/dts-bundle-generator/dist/compile-dts.js:151:36)
at compileDts (/Users/user123/Workspace/jp/comfyui-sdk/node_modules/dts-bundle-generator/dist/compile-dts.js:39:22)
at generateDtsBundle (/Users/user123/Workspace/jp/comfyui-sdk/node_modules/dts-bundle-generator/dist/bundle-generator.js:14:63)
at /Users/user123/Workspace/jp/comfyui-sdk/build.ts:41:22
Bun v1.1.42 (macOS x64)
It compiled code (.cjs.js, .esm.js, .map) to build dir but without typescript definitions.
Metadata
Metadata
Assignees
Labels
No labels