Skip to content

Light DOM slot forwarding throws error in SSR (@lwc/engine-server) #4668

Open
@nolanlawson

Description

@nolanlawson

Doing "light DOM slot forwarding" (i.e. renaming light DOM slots passed in to other slots) works in client-side rendering, but causes an error to be thrown during server-side rendering.

Repro: 391570c

This throws an error

Cannot read properties of undefined (reading 'find')

Here:

const attribute = element[HostAttributesKey].find(

The reason is that the element here is a "raw" type which doesn't have a HostAttributesKey:

Screenshot 2024-10-18 at 2 45 47 PM

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions