Live Preview Issue on Search

Hi Everyone!

I’m running into an issue with the live preview on Search. I used this Community Post to resolve the issue. However, I keep coming across the following error messages:


These mostly come up when I try to add an img src into the code.

Any ideas on how to troubleshoot this?

Hi Umaima,

Live Preview is working fine for me in your account. However, here are a few things you can do if you continue to see this issue:

  • Make this fix for a separate Live Preview issue that occurred around the same time.
  • If you’re seeing this error while trying to make changes in your code, there’s a good chance there’s an error in your code that’s preventing Live Preview from loading. Check the Console in your Code Editor after you make a change to see if there are any errors. I intentionally made an error in the screenshot below to demonstrate. When I made a change and Live Preview loaded properly, you’ll see “Completed”. Then I deleted the comma on line 47. You can see the next line has a red underline indicating an error. The console log also shows a SyntaxError with an unexpected " which caused a task (and Live Preview) to fail.