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

latest jsdom 4.0 only works on io.js #641

Closed
Knape opened this issue Feb 23, 2015 · 5 comments
Closed

latest jsdom 4.0 only works on io.js #641

Knape opened this issue Feb 23, 2015 · 5 comments

Comments

@Knape
Copy link

Knape commented Feb 23, 2015

When installing paperjs as a npm module, it installs version 0.4 of jsdom which only works on io.js.

When trying to require paperjs inside node it now returns the error:
this._globalProxy = vm.runInContext("this", this);

It would be good to only allow version ~3.0 of jsdom.

Running:
Nodejs v0.10.35
ubuntu v14.04 LTS 64bit

@zowers
Copy link

zowers commented Feb 26, 2015

same issue here

SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/var/app/node_modules/paper/node_modules/jsdom/lib/jsdom/level1/core.js:8:20)

@zowers
Copy link

zowers commented Feb 26, 2015

also same problem with canvas:

"canvas": ">= 0.7.0",

@lehni
Copy link
Member

lehni commented Feb 28, 2015

This was fixed in #644. But what's the issue with "canvas": ">= 0.7.0"?

@zowers
Copy link

zowers commented Mar 1, 2015

the issues will arise when some future version of canvas will be incompatible with paper. the same way as jsdom now

@lehni
Copy link
Member

lehni commented Mar 1, 2015

You're right. Changed now!

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

3 participants