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: window is not defined #1

Open
echan00 opened this issue Dec 19, 2020 · 0 comments
Open

ReferenceError: window is not defined #1

echan00 opened this issue Dec 19, 2020 · 0 comments

Comments

@echan00
Copy link

echan00 commented Dec 19, 2020

Trying to run this demo without much luck. Seems like the obelisk.js library is having trouble with 'window'

/Users/xxx/Downloads/test5/node_modules/obelisk.js/src/obelisk.js:53
window.obelisk = obelisk;
^

ReferenceError: window is not defined
    at Object.<anonymous> (/Users/xxx/Downloads/test5/node_modules/obelisk.js/src/obelisk.js:53:1)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/Users/erikchan/Downloads/test5/index.js:5:15)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
{
  "name": "node-obelisk-canvas-example",
  "version": "0.0.1",
  "description": "Example of how to run obelisk.js in Node.js",
  "dependencies": {
    "canvas": "^2.6.1",
    "iterm2-image": "^0.0.2",
    "lego-colors": "^0.0.2",
    "obelisk.js": "^1.2.2"
  }
}

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