webui-dev/deno-webui

examples not working

Errel2022 opened this issue · 2 comments

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";

We updated this repo, but the module in deno.land will be automatically updated when we create a new release.

@JOTSR Any idea how to solve this?

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.