examples not working
Errel2022 opened this issue · 2 comments
Errel2022 commented
error: Uncaught SyntaxError: The requested module 'https://deno.land/x/webui/mod.ts' does not provide an export named 'WebUI'
import { WebUI } from "https://deno.land/x/webui/mod.ts";
AlbertShown commented
JOTSR commented
As the latest change have not been released deno.land don't update the module so you can directly import module from github
import { WebUI } from 'https://raw.githubusercontent.com/webui-dev/deno-webui/main/mod.ts'
Pin a commit to ensure stable module reference.
Latest commit will work correctly eg:
deno run -A --unstable https://raw.githubusercontent.com/webui-dev/deno-webui/50fc01e8588d7455d0ee390cda4f3558dfb26ad9/examples/file_explorer/main.tsx
Next release will be here soon as main API changes was made.