node-sd-webui icon indicating copy to clipboard operation
node-sd-webui copied to clipboard

Could not lib

Open pharaohchik opened this issue 2 years ago • 0 comments

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:

  • 'node-sd-webui' version: "^0.0.8"
  • TypeScript version: 5.3.3

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.

pharaohchik avatar Dec 16 '23 09:12 pharaohchik