Page Builder Not Working in Spark (API v2)

  • 1
  • Problem
  • Updated 1 year ago
  • Solved
  • (Edited)
Hi - when trying to use the page builder to create a new page (API v2) I get this error: 

1. There was a problem rendering a component of type skuid__pageBuilder: Cannot read property 'indexOf' of undefined

Here's a gif of the error happening:
Photo of Kaede Holland

Kaede Holland

  • 3,176 Points 3k badge 2x thumb
  • too excited to try out spark

Posted 1 year ago

  • 1
Photo of J.

J., Official Rep

  • 7,960 Points 5k badge 2x thumb
Official Response
OK, I think I might have figured it out. I was able to reproduce the behavior and find a potential workaround, but beware: it's a little round about, and I'm not sure what side effects it might have for you, so you'll want to do some v1 testing if this works. Try this:
  1. Go to Salesforce Setup > Develop > Custom Settings
  2. Click Manage next to the Preference record (skuid namespace, in case you have another Preference Custom Setting)
  3. Click the Edit button at the top
  4. If Use Component Packs is unchecked, check it and click the Save button
  5. Try it again
If anything breaks for you, you can always uncheck that box and save again. We will look into fixing this behavior, but let us know if this gets you back in business or not!