Jump to content

problems with building a project in pandatool


Recommended Posts

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 build

which 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:3

Is this an error in the pandatool code or am I doing something silly...

Any suggestions?  :wacko:  


Link to comment
Share on other sites

I just saw there is a pull request open to fix this issue:




@enpu: Could you merge the pullrequest so the problem is fixed?




You 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]

Link to comment
Share on other sites

  • 2 months later...

Hi, people.
I made this repo to share with you my (temporal) solution to this problem.
I hope it may be usefull to you.

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


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...