Insights

Fixing Uncaught SyntaxError Unexpected Identifier and Cannot Read Property Reset of Undefined

Or, why you tried to be helpful but broke the Experience Editor

Part of being a great Sitecore developer means that you keep the content authors in mind. We want to make their experience as easy and intuitive as possible. One way to do this is to add helpful annotations to specific item fields. This helps the author understand what the field is used for or if there are any ambiguities about the field itself that are valuable to know of (ex. if the field value may affect the way the page will look).

Every template field item has a set of fields inside related to "Help":

Help Fields

However, there is a Sitecore bug where if you put quotations in the fields, particularly the "Short Description" field, it will break your Experience Editor:

Uncaught SyntaxError Unexpected Identifier Cannot Read Property Reset of Undefined

Simply remove the quotations, tell you your team never to do this, and keep on developing!

Good luck out there,

Ryan & Marcel

👋 Hey Sitecore Enthusiasts!

Sign up to our bi-weekly newsletter for a bite-sized curation of valuable insight from the Sitecore community.

What’s in it for you?

  • Stay up-to-date with the latest Sitecore news
  • New to Sitecore? Learn tips and tricks to help you navigate this powerful tool
  • Sitecore pro? Expand your skill set and discover troubleshooting tips
  • Browse open careers and opportunities
  • Get a chance to be featured in upcoming editions
  • Learn our secret handshake
  • And more!
Sitecore Snack a newsletter by Fishtank Consulting
 

Meet Ryan Allan

Senior Developer

⚙️💻👪

Ryan is a seasoned Senior Developer at Fishtank and is Sitecore Developer Certified. In a nutshell, he describes his role as "building extremely fancy websites". Ryan has a degree in Mechanical Engineering and previously worked on power plants and compressors, and now builds websites for the same company as a client! Outside of work, his interests are science + physics and spending time with his kids.

Connect with Ryan