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: Can't find variable: Set #304

Closed
lukasoppermann opened this issue May 17, 2017 · 3 comments
Closed

ReferenceError: Can't find variable: Set #304

lukasoppermann opened this issue May 17, 2017 · 3 comments

Comments

@lukasoppermann
Copy link

Hey,

so I am getting the following error:

ReferenceError: Can't find variable: Set

  http://localhost:8080/js/webcomponents-lite.js:147
  http://localhost:8080/js/webcomponents-lite.js:192

The actual code is: new Set("…

Any idea why this shows up? Is it possible the phantomjs version does not support Set? Can I avoid this somehow?

Can I provide any more information that could help?

Thanks.

@RyanZim
Copy link
Member

RyanZim commented May 17, 2017

The latest version of PhantomJS does not support ES2015 Set.

You can try the experimental branch of uncss that uses jsdom instead of PhantomJS by installing uncss-jsdom instead. See #280

@lukasoppermann
Copy link
Author

Thanks for the info, will try this.

@RyanZim
Copy link
Member

RyanZim commented Jun 10, 2017

@mikelambert can you close?

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