nerdenough / node-sd-webui

A Node.js client for Automatic1111's Stable Diffusion WebUI
https://www.npmjs.com/package/node-sd-webui
MIT License
68 stars 19 forks source link

Could not lib #5

Open pharaohchik opened 9 months ago

pharaohchik commented 9 months ago

Issue Description:

When using the 'node-sd-webui' package with TypeScript, the following error occurs:

Could not find a declaration file for module 'node-sd-webui'. 'e:/projects/ai-app/node_modules/node-sd-webui/esm/index.js' implicitly has an 'any' type. There are types at 'e:/projects/ai-app/node_modules/node-sd-webui/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'node-sd-webui' library may need to update its package.json or typings.

Package and Tool Versions:

Reproduction Steps:

  1. Install 'node-sd-webui' version ^0.0.8.
  2. Use it in a TypeScript project with the configuration as mentioned above.
  3. Run the TypeScript build.

Expected Behavior:

Expect TypeScript to successfully locate and use types for 'node-sd-webui' as specified in the documentation.