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

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

Open
nolanlawson opened this issue Oct 18, 2024 · 1 comment
Open

Comments

@nolanlawson
Copy link
Collaborator

nolanlawson commented Oct 18, 2024

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

Copy link

git2gus bot commented Oct 18, 2024

This issue has been linked to a new work item: W-17017336

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

No branches or pull requests

1 participant