sdk-svelte null checks missing
balaji-b-v opened this issue · 2 comments
Describe the bug
In the SDK-svelte , file: blocks.svelte a few null checks are to be added to avoid this issue
TypeError: Cannot read properties of undefined (reading 'BlocksWrapper') Error caught in [server-hooks]: Cannot read properties of undefined (reading 'BlocksWrapper') at node_modules\.pnpm\@builder.io+sdk-svelte@2.0.22_svelte@4.2.19\node_modules\@builder.io\sdk-svelte\lib\browser\components\blocks\blocks.svelte:22:61
To Reproduce
Steps to reproduce the behavior:
- Setup a SSR based web application
- Wire the builder.io/sdk-svelte for SSR rendering
Expected behavior
There should not be any null check errors.
Screenshots
- UI issue before null check
3. Code lines where null check is very much needed.
4.
5. UI loads fine after the fix
Additional context
Add any other context about the problem here.
Thanks for the quick PR @samijaber . Please let me know once it is formally moved into a release.
Thanks @samijaber . It is available in @builder.io/sdk-svelte@2.0.24