Forum

app.init is not a function (app is minimized)

25 August 2016 17:45 #11401
so i was trying to write a little app with b4w, but i ran into the error "app.init is not a function". so i printed the app object (which is the result of require("app")) to the console and found that all its method names have been minimized. i dont know if its intended to minimize the function names of the modules. if yes, where can i find an unminimized version?
25 August 2016 18:05 #11403
Hi and welcome to the Blend4Web forums!

Are you using b4w.min.js from the deploy/apps/common directory in the SDK?
Development Lead | Twitter
25 August 2016 18:15 #11405
oh i was using webplayer.min.js
i guess that was the wrong one then. thx
25 August 2016 18:20 #11406
You're welcome! Glad it helped
Development Lead | Twitter
 
Please register or log in to leave a reply.