Uncaught TypeError: Failed to resolve module specifier "lit/directives/class-map.js #1682
-
Unbundled testing with ExpressUse the npm installation instructions and defining a static path in express:
link references work fine:
But when the shoelace script is executed:
I get the following error:
Browser / OS
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Try using - <script type="module" src="/shoelace/dist/shoelace.js"></script>
+ <script type="module" src="/shoelace/cdn/shoelace.js"></script> |
Beta Was this translation helpful? Give feedback.
-
That works, thanks. |
Beta Was this translation helpful? Give feedback.
-
Recommend adjusting content under NPM Installation |
Beta Was this translation helpful? Give feedback.
-
Does anyone know how to use shoelace with Bun? The bare imports are causing some headache and I really don't want to use a CDN as my app will be run within a local network with no way of connecting the public internet. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Try using
/cdn
instead of/dist
. Because you're not piping through a bundler, its not going to resolve any "bare module specifiers"