Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix example.html #7

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions example.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,7 @@
<script type="module">
import { createRoot } from "https://esm.sh/react-dom";
import { createElement } from "https://esm.sh/react";
// Fails on view molecule, React is not defined
import { ClusterTable } from "https://esm.sh/@i-vresse/haddock3-ui/dist/table/ClusterTable";
// Fails on view molecule, React is not defined
//import { ClusterTable } from "https://esm.sh/@i-vresse/haddock3-ui/dist/table/ClusterTable?bundle-deps";
// Fails on useState<SortState> bad hook
//import { ClusterTable } from "https://esm.sh/@i-vresse/haddock3-ui/dist/table/ClusterTable?dev";
// Failed with
// Uncaught SyntaxError: The requested module 'https://esm.run/@i-vresse/haddock3-ui/dist/table/ClusterTable' does not provide an export named 'ClusterTable' (at example.html:22:16)
// 'Failed to bundle using Rollup v2.79.1: failed to resolve an internal import. If you believe this to be an issue with jsDelivr, and not with the package itself, please open an issue at https://github.com/jsdelivr/jsdelivr');
//import { ClusterTable } from "https://esm.run/@i-vresse/[email protected]/dist/table/ClusterTable"
// Failed with
// TypeError: Cannot read properties of null (reading 'useState')
// at n.useState (react.production.min.js:26:234)
// at T (SortableTable.tsx:227:37)
// import { ClusterTable } from "https://esm.noim.io/@i-vresse/[email protected]/dist/table/ClusterTable"

import { ClusterTable } from "https://esm.sh/@i-vresse/haddock3-ui/dist/table/ClusterTable?bundle-deps";

const clusters = [
{
Expand Down