S
SolidJS19h ago
andi

TypeError: Cannot read properties of undefined (reading 'when')

Has anyone seen this error before? Getting this error coming from the Switch component internals Some extra details: - There's no other children under the Switch apart from 4 Match components - The one that causes the error looks like this:
<Match when={(props.messages?.length || 0) === 0}>
<EmptyMessage />

<Container>
<PersistentBar />
</Container>
</Match>
<Match when={(props.messages?.length || 0) === 0}>
<EmptyMessage />

<Container>
<PersistentBar />
</Container>
</Match>
- This error is only reproducible when solid-js is build for production and not in dev server mode - I couldn't make a smaller reproducible version, could there be something outside of the Switch intefering with the rendering of the children? 🤔 I know it's a long shot to get an answer for this without a reproducible example but I'm hoping someone's seen this before an might have an idea, thank you 🙏
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server