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

ReferenceError: document is not defined #60

Closed
ahezza opened this issue Oct 11, 2019 · 2 comments
Closed

ReferenceError: document is not defined #60

ahezza opened this issue Oct 11, 2019 · 2 comments

Comments

@ahezza
Copy link

ahezza commented Oct 11, 2019

Here's the error I get when trying to run a sample:

\# box-js --timeout 300 sample.js

/usr/local/lib/node_modules/box-js/node_modules/vm2/lib/main.js:297
			throw this._internal.Decontextify.value(e);
			^
ReferenceError: document is not defined
    at vm.js:108:1
    at Script.runInContext (vm.js:107:20)
    at VM.run (/usr/local/lib/node_modules/box-js/node_modules/vm2/lib/main.js:291:64)
    at Object.<anonymous> (/usr/local/lib/node_modules/box-js/analyze.js:442:5)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)

 * If the error is about a weird "Unknown ActiveXObject", try --no-kill.
 * Otherwise, report a bug at https://github.com/CapacitorSet/box-js/issues/ .

Done some Googling and can't find a solution to this

@CapacitorSet
Copy link
Owner

CapacitorSet commented Oct 11, 2019 via email

@ahezza
Copy link
Author

ahezza commented Oct 11, 2019

Thanks for your help

@ahezza ahezza closed this as completed Oct 11, 2019
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