Uncaught TypeError: Cannot read property 'hasChanged' of undefined

Blank screen on page load, with this error. Any ideas?

1
Categories
- 7.9K Questions
- 926 Ideas
- 220 Discussion Categories
- 178 General
- 9 Community Feedback
- 3 Community Info
- 18 Knowledge Base
Comments
Here are the contents of line 82. Looks like the XML for the entire page.
Hence the name "skuid.component.factory" I presume.
I usually get this error when I have not defined an sObject for a model. Β Maybe you started to set up a model and then stopped to do somthing else and forgot about it? Β Happens to me all the time.Β
Does your page models point to any custom objects/fields. If not, I'll take a look at the page if you want copy the page XML to here.
Pat, Thanks... it's entirely custom objects.
I'm guessing it has something to do with how the models are set up, but I haven't been able to diagnose.
I realized that just before I noticed the error, I had added a field editor with a single field.
I removed that field editor, and voila! I worked.
I then added a field editor and the same field back again, and it still works!
So, I remain confused, but I have a working page.
We consider any javascript error that comes from our code a problem with Skuid. Β Even if something is horribly wrong with your XML, Skuid Javascript should give you a nice error. Β One really cool feature I found recently in Chrome Dev Tools is the "Pretty Print" button on the "Sources" tab.
In the future, if you want to get closer to where the error is happening, click that button and it will turn one line of minified nastiness into lots of lines of slightly more understandable nastiness. Β I absolutely love that feature though.
This sounds to me like a object level security issue. If the users can't see an object, Β skuid will not show it to them (and the page might look blank)Β
Just some information on a similar javascript error and the situation I had to create it.
I just had a similar issue when moving page between environments. The error I was receiving was as follows:
Uncaught TypeError: Cannot read property 'createable' of undefined
The page I was using this on had a calendar component using a REST data source. In my situation the person who had done the configuration didn't mention a data source was used and this was not transferred to the production environment.
Skuid only provided a relevant error message once the calendar component was removed and the page was refreshed, at which point it stated the environment was missing a data source.
Hope that helps.ο»Ώ