accessible-menu icon indicating copy to clipboard operation
accessible-menu copied to clipboard

Having trouble implementing this.

Open fallenturtle opened this issue 7 months ago • 9 comments

I'm having some sort of syntax issue I think getting this off the ground. I've added: import { DisclosureMenu } from "https://esm.sh/[email protected]"; to my js file, but the console gives a syntax error: mainnav.js?v=9.5.9:1 Uncaught SyntaxError: The requested module 'https://esm.sh/[email protected]' does not provide an export named 'DisclosureMenu'

I also tried pointing the import statement at the location of the file in my project, but that gives me the same error: import { DisclosureMenu } from "/libraries/accessible-menu/dist/disclosure-menu.iife.js";

I tried removing the {} from around DisclosureMenu but then it says its not a constructor. Any idea what I'm doing wrong? Thanks!

Here's a codepen of the issues I'm running into https://codepen.io/fallenturtle/pen/vYqOOXw

fallenturtle avatar Jul 11 '24 23:07 fallenturtle