comfyui-client icon indicating copy to clipboard operation
comfyui-client copied to clipboard

Browser example not working, need complete example code

Open ClusterLee opened this issue 1 year ago • 1 comments

where can I find main.module.mjs

ClusterLee avatar Oct 09 '24 05:10 ClusterLee

thx feedback!

Are you referring to examples/web/index.html? This is an extremely simple example (actually just something I use for debugging...), and it requires you to compile first and then start a server in the project directory (I know, it's a bit confusing 😂).

I'll update this script to use unpkg soon. I'll also likely add a simple codesandbox project for easier use.

If you'd like to try it out now, you can simply replace the path with unpkg:

https://unpkg.com/@stable-canvas/comfyui-client@latest/dist/main.module.mjs

So it would be:

import {
  Client,
  Workflow,
} from "https://unpkg.com/@stable-canvas/comfyui-client@latest/dist/main.module.mjs";

zhzLuke96 avatar Oct 09 '24 07:10 zhzLuke96