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

Tree LOD with virtualization demo opens with error in CodeSandbox due to "@lit-labs/virtualizer" import #518

Open
ddaribo opened this issue Aug 23, 2023 · 0 comments

Comments

@ddaribo
Copy link
Contributor

ddaribo commented Aug 23, 2023

Steps:

  1. Open the Load On Demand With Virtualization demo in CodeSandbox.
  2. Oberve the error.
  3. Delete line 8 (import "@lit-labs/virtualizer";)
  4. Sample compiles.

The error states:
Failed to execute 'define' on 'CustomElementRegistry': the name "lit-virtualizer" has already been used with this registry.

image

However, when running the sample locally, this line is needed, so that the virtualization feature works.

The sample was introduced with this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant