open-wc / form-participation

Helper, mixins, tools, and more for supporting your custom elements in participating in an ancestor form.
MIT License
53 stars 7 forks source link

TypeError: this.attachInternals is not a function #53

Open dominikfryc opened 8 months ago

dominikfryc commented 8 months ago

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 commented 8 months ago

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

dominikfryc commented 8 months ago

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.