BuilderIO / BuilderIO/builder

Qwik + Builer.io Section/page Models with repeaters - Maximum call stack size exceeded Error

Open
#3,184 0 comments 0 reactions 1 assignee Claimed by @samijaber View on GitHub
Stale
Dominant language
TypeScript
Stars
8.8k
Forks
1.2k
Avg merge
1d 6h
Merged PRs (30d)
17

Description

**Describe the bug**
When using the latest version of qwik-sdk for builder I can not add a repeated element to a page/section etc. the site crashes with "Maximum call stack size exceeded" error. See screen shots

**To Reproduce**
Steps to reproduce the behavior:
1. Create a minimal qwik app connected to builder .IO
2. Update to latest dependencies "@builder.io/dev-tools": "^1.0.2",
"@builder.io/qwik": "^1.5.1",
"@builder.io/qwik-city": "^1.5.1",
"@builder.io/qwik-react": "^0.5.4",
"@builder.io/sdk-qwik": "^0.14.12",
3. In builder create a model with a repeater field, and add some content
4. On a page add the repeater to the page and try to bind a text box to a repeated field.
5. You may need to refresh the preview to see the error - sometimes it appears on the server console. sometimes in the browser

I'm not sure if it helps but I think it's to do with isolated-vm and can confirm the issue is introduced in version 0.7.1. of the @builder.io/sdk-qwik and as far as I can tell doesn't get sorted in subsequent releases that address other isolated-vm issues.

Here is a minimal repo: [https://github.com/rockitweb/Qwik-MinimalRepo](https://github.com/rockitweb/Qwik-MinimalRepo)
builder.io public API: bfc4fbf784f249e0a2dcad11efc57bd0

**Expected behavior**
For it to work :)

**Screenshots**
![Screen Shot 2024-04-08 at 11 25 31 am](https://github.com/BuilderIO/builder/assets/65389203/ea45e15d-c73a-4510-9332-fdc60db6d463)

image

**Additional context**
I think it's to do with isolated-vm?
I've tried following the instructions [here](https://github.com/BuilderIO/builder/tree/main/packages/sdks) , by adding `NODE_OPTIONS=--no-node-snapshot` to the .env file. This resulted in a vite segmentation fault.

Here's info about the OS I develop on
![image](https://github.com/BuilderIO/builder/assets/65389203/ecbf5610-d56e-4d48-b1ec-3b9780fe0029)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.