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

TypeError: this.attachInternals is not a function #53

Open
dominikfryc opened this issue Jan 5, 2024 · 2 comments
Open

TypeError: this.attachInternals is not a function #53

dominikfryc opened this issue Jan 5, 2024 · 2 comments

Comments

@dominikfryc
Copy link

I'm trying to use my components with Lit SSR, but the ones using FormControlMixin cause this error:

TypeError: this.attachInternals is not a function

Is there anything I could do to prevent this?

@calebdwilliams
Copy link
Collaborator

Try upgrading to the latest Lit SSR. Internals should exist in that package.

@dominikfryc
Copy link
Author

You were right, they exist https://github.com/lit/lit/blob/9a4d569f710a3c49409dcc778b71a71a04c4916a/packages/labs/ssr-dom-shim/src/index.ts#L75C11-L75C11.

But I have the latest version of @lit-labs/ssr 3.2.0 and @lit-labs/ssr-client 1.1.5, which uses the latest version of @lit-labs/ssr-dom-shim 1.1.2, but for some reason, it still doesn't work.

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

No branches or pull requests

2 participants