-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
@astrojs/lit | this._$Ej.forEach is not a function #8825
Comments
Your reproduction installs Lit 3.0. It is not supported yet. |
@lilnasy I didn't install Lit, I've just used Please re-open the issue. |
Ok, it seems to install 3.0 by default. As a wrokaround, you can ensure the version in your package json is exactly "2.8.0". |
|
@lilnasy Glad you find a quick fix, thanks |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Starting a new project from scratch I'm not able to render lit elements in any way except using the
client:only="lit"
directive.Error:
this._$Ej.forEach is not a function
TypeError: this._$Ej.forEach is not a function at MyElement.update (file:///Users/username/Desktop/test/node_modules/@lit/reactive-element/node/reactive-element.js:1:5579) at LitElementRenderer.connectedCallback (file:///Users/username/Desktop/test/node_modules/@lit-labs/ssr/lib/lit-element-renderer.js:51:42) at render (/Users/username/Desktop/test/node_modules/@astrojs/lit/server.js:62:11) at render.next (<anonymous>) at Object.renderToStaticMarkup (/Users/username/Desktop/test/node_modules/@astrojs/lit/server.js:108:11) at renderFrameworkComponent (/Users/username/Desktop/test/node_modules/astro/dist/runtime/server/render/component.js:205:66) at async Module.renderComponent (/Users/username/Desktop/test/node_modules/astro/dist/runtime/server/render/component.js:356:10)
What's the expected result?
Render the component without issue.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-fqvkdx?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: