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

🐛 BUG: Referencing a lit component within a dynamic route doesnt work #3951

Closed
1 task
FelixSchuSi opened this issue Jul 17, 2022 · 0 comments · Fixed by #4047
Closed
1 task

🐛 BUG: Referencing a lit component within a dynamic route doesnt work #3951

FelixSchuSi opened this issue Jul 17, 2022 · 0 comments · Fixed by #4047
Assignees
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)

Comments

@FelixSchuSi
Copy link

FelixSchuSi commented Jul 17, 2022

What version of astro are you using?

astro 1.0.0-beta.72 and @astrojs/lit 0.3.1

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

WIndows, Linux

Describe the Bug

When building a project where a lit component is referenced within a dynamic route, astro fails with the following error message:

image

Note that this error only occurs when BUILDING the project. The dev server continues to work.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-a61u51-p8tuyj?file=src/pages/[id].astro

Participation

  • I am willing to submit a pull request for this issue.
@matthewp matthewp self-assigned this Jul 18, 2022
@matthewp matthewp added the - P4: important Violate documented behavior or significantly impacts performance (priority) label Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants