castle icon indicating copy to clipboard operation
castle copied to clipboard

Built Castle from source, have error that Node is below 4.0.0 even though it isn't

Open alan-j-hu opened this issue 5 years ago • 4 comments

I cloned the repository, installed the dependencies, and built Castle. When running nwjs/nw castle.js from the bin directory, the program exists with Module <redacted>/castle/bin/castle.js requires node.js version 4.0.0 or higher.

Using the "NWJS package" linked on the README does not have this issue (although the tiles and tilemap don't appear, so I decided to build from source to see if doing so fixes the problem).

When running NWJS without a package, I get a demo program that states that the version of Node JS that NWJS uses is 11.2.0.

alan-j-hu avatar Nov 28 '18 14:11 alan-j-hu

To install dependencies don't use haxelib install castle.hxml. Install packages with haxelib git reponame linktorepo(i.e.: https://github.com/ncannasse/hxbit.git). Also use the haxe preview 5 version.

mundusnine avatar Jan 15 '19 13:01 mundusnine

I couldn't build it either, i'm using Haxe Compiler 4.3.0-rc.1+4976732

-lib hxnodejs:git:https://github.com/HaxeFoundation/hxnodejs
-lib hx3compat:git:https://github.com/HaxeFoundation/hx3compat
-lib format:git:https://github.com/HaxeFoundation/format
-lib hxbit:git:https://github.com/HeapsIO/hxbit

error:

/home/user/.local/haxelib/hx3compat/git/std/js/jquery/JQuery.hx:226: characters 28-56 : Warning : This typedef is deprecated in favor of js.lib.Thenable<js.Thenable.T>
/home/user/.local/haxelib/hx3compat/git/std/js/jquery/JQuery.hx:230: characters 54-62 : Warning : This typedef is deprecated in favor of js.lib.Error
/home/user/.local/haxelib/hx3compat/git/std/js/jquery/JQuery.hx:271: characters 143-171 : Warning : This typedef is deprecated in favor of js.lib.Thenable<js.Thenable.T>
src/Main.hx:696: characters 51-56 : Int should be cdb.Separator
src/Main.hx:696: characters 51-56 : ... For function argument 'v'
src/Main.hx:715: characters 9-36 : cdb.SheetProps has no field separatorTitles
src/Main.hx:715: characters 47-74 : cdb.SheetProps has no field separatorTitles
src/Main.hx:719: characters 10-37 : Cannot compare cdb.Separator and Int
src/Main.hx:723: characters 39-44 : Int should be cdb.Separator
src/Main.hx:723: characters 39-44 : ... For function argument 'x'
src/Main.hx:724: characters 9-36 : cdb.SheetProps has no field separatorTitles
src/Main.hx:724: characters 48-75 : cdb.SheetProps has no field separatorTitles
src/Main.hx:724: characters 48-93 : Cannot compare Unknown<0> and Dynamic
src/Main.hx:1916: characters 11-39 : Int should be cdb.Separator
src/Main.hx:1919: characters 21-48 : cdb.SheetProps has no field separatorTitles
src/Main.hx:1919: characters 59-86 : cdb.SheetProps has no field separatorTitles
src/Main.hx:1928: characters 20-47 : cdb.SheetProps has no field separatorTitles
src/Main.hx:1936: characters 7-34 : cdb.SheetProps has no field separatorTitles

theRemix avatar Jan 17 '22 20:01 theRemix

i'm facing the same build error as @theRemix

igaryhe avatar Jan 26 '22 06:01 igaryhe

As specified in the README, the editor code here is no longer maintained and has been moved to HIDE: https://github.com/heapsio/hide

ncannasse avatar Jan 26 '22 19:01 ncannasse