behavior3 / behavior3editor

An awesome online visual editor for Behavior3 (Behavior Trees Visual Editor)
MIT License
646 stars 264 forks source link

Broken build in NodeJS v13 #44

Open rubenwardy opened 4 years ago

rubenwardy commented 4 years ago
fs.js:39
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:39:5
    at req_ (/home/ruben/dev/tools/behavior3editor/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/home/ruben/dev/tools/behavior3editor/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/home/ruben/dev/tools/behavior3editor/node_modules/graceful-fs/fs.js:1:37)
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/89378045-broken-build-in-nodejs-v13?utm_campaign=plugin&utm_content=tracker%2F18331319&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F18331319&utm_medium=issues&utm_source=github).
JohanneLun commented 4 years ago

Solved this by downgrading to nodejs version 10.x. The newer versions of nodejs does not support gulp 3 which causes the error.

$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt-get install -y nodejs
rubenwardy commented 4 years ago

That's not a good solution at all

I've switched to using owlbt, it works very well

JohanneLun commented 4 years ago

@rubenwardy That was my quick solution. The whole thing should be updated.

Are you using the behavior3js or behavior3py from behavior3 or something else? Just wondering if owlbt is possible to use with them, especially the python version.

rubenwardy commented 4 years ago

I'm using a custom implementation in Lua

The editor doesn't matter as long as it can support custom node types