ncsoft / Unreal.js

Unreal.js: Javascript runtime built for UnrealEngine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined required script 'jade-umg'

mrmowgli opened this issue · comments

Building on Ubuntu 20.04 Linux with UE 4.26.1 from source.

Following the build instructions from the wiki, I cloned the plugin into the example project: Unreal.js-snippet-editor/Example 4.26, opened up the editor and was prompted to compile the plugin. Compiled it and as the editor opened I could see it hitting an error when trying to load jade-umg:

Warning: Undefined required script 'jade-umg'
Error: file:////home/mrmowgli/Projects/unreal-projects/Examples4.26/Content/Scripts/extension-spiralGenerator.js:4: TypeError: require(...) is not a function
Error: TypeError: require(...) is not a function
Error:     at file:////home/mrmowgli/Projects/unreal-projects/Examples4.26/Content/Scripts/extension-spiralGenerator.js:4:1
Error:     at file:////home/mrmowgli/Projects/unreal-projects/Examples4.26/Content/Scripts/extension-spiralGenerator.js:119:4
Error:     at file:////home/mrmowgli/Projects/unreal-projects/Examples4.26/Content/Scripts/extension-spiralGenerator.js:120:25
Error:     at spawn (file:////home/mrmowgli/Projects/unreal-projects/Examples4.26/Plugins/UnrealJS/Content/Scripts/editor.js:37:12)
Error:     at file:////home/mrmowgli/Projects/unreal-projects/Examples4.26/Plugins/UnrealJS/Content/Scripts/editor.js:47:55
Error:     at Array.map (<anonymous>)
Error:     at main (file:////home/mrmowgli/Projects/unreal-projects/Examples4.26/Plugins/UnrealJS/Content/Scripts/editor.js:47:38)
Error:     at module.exports (file:////home/mrmowgli/Projects/unreal-projects/Examples4.26/Plugins/UnrealJS/Content/Scripts/editor.js:56:31)
Error:     at default_exec (file:////home/mrmowgli/Projects/unreal-projects/Examples4.26/Plugins/UnrealJS/Content/Scripts/devrequire.js:19:31)
Error:     at devrequire (file:////home/mrmowgli/Projects/unreal-projects/Examples4.26/Plugins/UnrealJS/Content/Scripts/devrequire.js:26:19)
< Invalid script for require
Error: TypeError: require(...) is not a function

I've gone into the Content/Scripts folder and run npm install and it downloads only a couple of depencies.

When I try and run any of the projects they fail, and I see only partial success and in some cases no errors. For the Hello2048 level messages coming through the UnrealJS Console repeat the error I list above. When I do a find on the project I can't see any files that contain jade-umg and it's not listed as a package.json dependency.

Any ideas?