Open Jeroendevr opened 1 year ago
Incorporating pr #43 and updating isolated-vm to 3.0.0 the builds succeeds. But complains about runtime. Could that be related to the fact that I test this single package only and not the server as a whole?
ERROR in ./lib/runtime/runtime-driver.js
Module not found: Error: Can't resolve '@screeps/common/lib/system' in '/Users/hayer/driver/lib/runtime'
@ ./lib/runtime/runtime-driver.js 11:17-54
@ ./lib/runtime/mapgrid.js
@ ./lib/runtime/runtime.js
ERROR in ./lib/runtime/runtime.js
Module not found: Error: Can't resolve '@screeps/engine/src/game/console' in '/Users/hayer/driver/lib/runtime'
@ ./lib/runtime/runtime.js 8:24-67
ERROR in ./lib/runtime/runtime.js
Module not found: Error: Can't resolve '@screeps/engine/src/game/game' in '/Users/hayer/driver/lib/runtime'
@ ./lib/runtime/runtime.js 7:17-57
ERROR in ./lib/runtime/runtime.js
Module not found: Error: Can't resolve '@screeps/engine/src/utils' in '/Users/hayer/driver/lib/runtime'
@ ./lib/runtime/runtime.js 2:18-54
ERROR in ./lib/runtime/mapgrid.js
Module not found: Error: Can't resolve '@screeps/pathfinding' in '/Users/hayer/driver/lib/runtime'
@ ./lib/runtime/mapgrid.js 1:18-49
@ ./lib/runtime/runtime.js
Runtime snapshot created (252298 bytes)
npm ERR! code 2
npm ERR! path /Users/hayer/driver
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild -C native && webpack
On the main page of the screeps server it states only Python 2 is supported. Meanwhile there have been some updates to node-gyp and now supports Python 3. From version 5.0.4 I believe.
I would like to add support for the newer node-gyp version. Installing node-gyp using Python 3.10.8 was succesfull.
However I am not completely familiar with the npm enviroment. So when testing the driver module this was the error message.