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

helloSpringy.js example not downloading additioanl dependencies (ReferenceError: document is not defined) #317

Open
dgan11 opened this issue Feb 9, 2022 · 1 comment

Comments

@dgan11
Copy link

dgan11 commented Feb 9, 2022

Hello trying to run the I have copied the example repo and am trying to run the helloSpringy.js code on an empty actor but I am getting these error messages

Error: file:////Users/davidgan/Desktop/UEAuthDemo/UEAuthDemo/Content/Scripts/node_modules/bootstrap/dist/js/bootstrap.js:761: ReferenceError: document is not defined Error: ReferenceError: document is not defined Error: at enableDismissTrigger (file:////Users/davidgan/Desktop/UEAuthDemo/UEAuthDemo/Content/Scripts/node_modules/bootstrap/dist/js/bootstrap.js:761:21) Error: at file:////Users/davidgan/Desktop/UEAuthDemo/UEAuthDemo/Content/Scripts/node_modules/bootstrap/dist/js/bootstrap.js:856:3 Error: at file:////Users/davidgan/Desktop/UEAuthDemo/UEAuthDemo/Content/Scripts/node_modules/bootstrap/dist/js/bootstrap.js:7:83 Error: at file:////Users/davidgan/Desktop/UEAuthDemo/UEAuthDemo/Content/Scripts/node_modules/bootstrap/dist/js/bootstrap.js:10:3 Error: at file:////Users/davidgan/Desktop/UEAuthDemo/UEAuthDemo/Content/Scripts/node_modules/bootstrap/dist/js/bootstrap.js:5048:4 Error: at file:////Users/davidgan/Desktop/UEAuthDemo/UEAuthDemo/Content/Scripts/node_modules/bootstrap/dist/js/bootstrap.js:5049:25 Error: at file:///../../../../../../davidgan/Desktop/UEAuthDemo/UEAuthDemo/Content/Scripts/./ExampleScriptsFromUnrealJS/helloSpringy.js:210:5 Error: at file:///../../../../../../davidgan/Desktop/UEAuthDemo/UEAuthDemo/Content/Scripts/./ExampleScriptsFromUnrealJS/helloSpringy.js:445:3 < Invalid script for require Error: file:///../../../../../../davidgan/Desktop/UEAuthDemo/UEAuthDemo/Content/Scripts/./ExampleScriptsFromUnrealJS/helloSpringy.js:210: TypeError: require(...) is not a function Error: TypeError: require(...) is not a function Error: at file:///../../../../../../davidgan/Desktop/UEAuthDemo/UEAuthDemo/Content/Scripts/./ExampleScriptsFromUnrealJS/helloSpringy.js:210:25 Error: at file:///../../../../../../davidgan/Desktop/UEAuthDemo/UEAuthDemo/Content/Scripts/./ExampleScriptsFromUnrealJS/helloSpringy.js:445:3

I have installed the Unreal.js plugin and it seems to be working with a test javascript file that just console.logs() something that doesnt use the try catch structure in helloSpringy

My helloSpringy.js looks exactly like this

My Scripts folder looks like this (it includes bootstrap.js)
Screen Shot 2022-02-09 at 10 58 39 AM

And my package.json file looks like this
{ "name": "unrealjs_examples", "version": "1.0.0", "main": "index.js", "type": "module", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "NCSOFT", "license": "ISC", "dependencies": { "bootstrap": "^5.1.3", "convnetjs": "^0.3.0", "springy": "^2.8.0" }, "directories": { "test": "tests" }, "description": "" }

@dgan11
Copy link
Author

dgan11 commented Feb 9, 2022

I have also run an npm install in the Scripts folder to install existing dependencies

@dgan11 dgan11 changed the title helloSpringy.js example not downloading additioanl dependencies helloSpringy.js example not downloading additioanl dependencies (ReferenceErrorL document is not defined) Feb 9, 2022
@dgan11 dgan11 changed the title helloSpringy.js example not downloading additioanl dependencies (ReferenceErrorL document is not defined) helloSpringy.js example not downloading additioanl dependencies (ReferenceError: document is not defined) Feb 9, 2022
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

1 participant