This app has an interesting behaviour. I had to comment almost whole code. If I leave only this:
(just a Page element with it's title), then app "works" and there are no errors in the console.
But if I only try to put some other content into the page (for example, if I leave the button) --> mentioned error show up, and all I have is bluecrystal page...
No idea.