hi everyone,
I am trying to make my first sencha app running and I am facing a lot of issues.- My first issue is with microloader, is this a proper index.html file?
HTML Code:
<!DOCTYPE HTML>
<html manifest="" lang="en-US">
<head>
<meta charset="UTF-8">
<title>XXX</title>
<script id="microloader" type="text/javascript" src="js/sencha-sdk/microloader/development.js"></script>
</head>
<body>
<div id="appLoadingIndicator"><div></div><div></div><div></div></div>
</body>
</html>
As all my .js dependencies are listed in proper order in app.json, I am able to compile my app using sencha app build testing and I can view my app nicely, everything is working as expected. - Now I wanted to create release build so I tried sencha app build production and suddenly started seeing
Error evaluating <a href="http://localhost/.../SomeJS.js" target="_blank" rel="nofollow">http://localhost/.../SomeJS.js</a> with message: ReferenceError: SomeJs is not defined
...in chrome console at runtime- I tought maybe chaning microloader/development.js to microloader/production.js would help, but with production.js I am not even able to run production build, I receive:
[ERROR] TypeError: 'undefined' is not a function
phantomjs://webpage.evaluate():7
phantomjs://webpage.evaluate():1
...\js\sencha-sdk\command\vendor\phantomjs\dependencies.js:36
This issue seems to be frequent all over the web but I was not able to find working solution. My code is compiled fine for testing and throws issues at production? Why is that?- Is it necessary to replace microloader for production.js in production build, or build process is smart enough to do this itself?