Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: require(...) is not a function #34

Open
RPG3D opened this issue Jun 3, 2018 · 1 comment
Open

TypeError: require(...) is not a function #34

RPG3D opened this issue Jun 3, 2018 · 1 comment

Comments

@RPG3D
Copy link
Contributor

RPG3D commented Jun 3, 2018

hi
when I run your demo project, meet an error

Javascript: Error: TypeError: Cannot read property 'spawnTab' of undefined
MapCheck: Map check complete: 0 Error(s), 0 Warning(s), took 37.652ms to complete.
Javascript: Error: file:///d:/Program%20Files/Epic%20Games/UE_4.19/Engine/Plugins/Marketplace/UnrealJS/Content/Scripts/devrequire.js:19: TypeError: require(...) is not a function
Javascript: Error: TypeError: require(...) is not a function
Javascript: Error: at default_exec (file:///d:/Program%20Files/Epic%20Games/UE_4.19/Engine/Plugins/Marketplace/UnrealJS/Content/Scripts/devrequire.js:19:31)
Javascript: Error: at devrequire (file:///d:/Program%20Files/Epic%20Games/UE_4.19/Engine/Plugins/Marketplace/UnrealJS/Content/Scripts/devrequire.js:26:19)
Javascript: Error: at module.exports (file:///e:/UEProject/Unreal.js-demo-4.19/Content/Scripts/bootstrap.js:12:30)
Javascript: Error: at file:///e:/UEProject/Unreal.js-demo-4.19/Content/Scripts/app.js:19:25
Javascript: Error: at file:///e:/UEProject/Unreal.js-demo-4.19/Content/Scripts/app.js:21:3

@imre-chroncsik
Copy link

Not sure about the exact reasons, but I noticed that since the 4.19 update, app.js now does require('bootstrap')(__filename) while previous versions did require('bootstrap')('app'). For me this new code causes 'require(...) is not a function', reverting to 'app' fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants