Skip to content

Can't get Lit or components to work - help! #4176

Closed Answered by bennypowers
andrebaerlocher asked this question in Q&A
Discussion options

You must be logged in to vote

No problem

There are two main options to solve this error

The first is called import maps. You can generate an import map for your page at http://generator.jspm.dev and it will work in production.

Another option is called node resolution. You can turn it on by adding --node-resolution to the wds command. This will only work for the dev server: for production, you'll need to use a bundler like esbuild, rollup, or webpack. Configuration of those bundlers is complex, you should seek support for them in their dedicated channels.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@andrebaerlocher
Comment options

@bennypowers
Comment options

@andrebaerlocher
Comment options

@bennypowers
Comment options

Answer selected by AndrewJakubowicz
@andrebaerlocher
Comment options

@bennypowers
Comment options

@andrebaerlocher
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants