Stephan Posted December 16, 2015 Share Posted December 16, 2015 Hi there, I'm trying to get Panda.js running from node using the pandatool but unnfortunately I'm encountering some problems with building the app. This is what I have done sofar:> npm install pandatool -g> panda create project1> cd project1project1> panda buildwhich gives the following error:C:\git\pandatest\testproject\project1>panda buildBuilding project...C:\Users\rtpa\AppData\Roaming\nvm\v4.2.3\node_modules\pandatool\build.js:56 delete game.config.debug; ^TypeError: Cannot convert undefined or null to object at Object.module.exports.exports [as build] (C:\Users\rtpa\AppData\Roaming\nvm\v4.2.3\node_modules\pandatool\build.js:56:16) at Object.<anonymous> (C:\Users\rtpa\AppData\Roaming\nvm\v4.2.3\node_modules\pandatool\panda.js:7:17) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Function.Module.runMain (module.js:467:10) at startup (node.js:136:18) at node.js:963:3Is this an error in the pandatool code or am I doing something silly...Any suggestions? Quote Link to comment Share on other sites More sharing options...
Stephan Posted December 16, 2015 Author Share Posted December 16, 2015 I just saw there is a pull request open to fix this issue: https://github.com/ekelokorpi/panda.js-toolkit/pull/12/files @enpu: Could you merge the pullrequest so the problem is fixed? Thanx!Stephan Quote Link to comment Share on other sites More sharing options...
guawoo Posted December 17, 2015 Share Posted December 17, 2015 I just saw there is a pull request open to fix this issue: https://github.com/ekelokorpi/panda.js-toolkit/pull/12/files @enpu: Could you merge the pullrequest so the problem is fixed? Thanx!StephanYou can manual fix this bug in build.js in C:\Users\youname\appdata\Roaming\npm\node_modules\pandatool.But you will still get a error that "uncaught exception: Failed to load module engine.debug at engine/debug.js required from engine.core" when you run project.I have no idea to deal with this problem. I think maybe this is pandajs 2.0 bug. So I installed an old version, it work fine. Install an old version do it like this: npm install -g [email protected] Quote Link to comment Share on other sites More sharing options...
Stephan Posted December 17, 2015 Author Share Posted December 17, 2015 thanx for your reply guowoo. I'll give it a try! Quote Link to comment Share on other sites More sharing options...
ViterRod Posted March 4, 2016 Share Posted March 4, 2016 Hi, people. I made this repo to share with you my (temporal) solution to this problem. I hope it may be usefull to you.https://github.com/Viterbo/pandatool-2.0.4-empty-game-template npm install [email protected] --save-dev git clone https://github.com/Viterbo/pandatool-2.0.4-empty-game-template.git mv pandatool-2.0.4-empty-game-template template cd template panda build Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.