Skip to content

Uncaught TypeError: Failed to resolve module specifier "lit/directives/class-map.js #1682

Answered by KonnorRogers
kentskyo asked this question in Help
Discussion options

You must be logged in to vote

Try using /cdn instead of /dist. Because you're not piping through a bundler, its not going to resolve any "bare module specifiers"

- <script type="module" src="/shoelace/dist/shoelace.js"></script>
+ <script type="module" src="/shoelace/cdn/shoelace.js"></script>

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by kentskyo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@claviska
Comment options

@claviska
Comment options

@dazraf
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
bug Things that aren't working right in the library.
5 participants
Converted from issue

This discussion was converted from issue #1681 on October 25, 2023 00:30.