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

Uncaught TypeError: document.styleSheets[Symbol.iterator] is not a function #523

Closed
elpagano opened this issue Jan 17, 2017 · 6 comments
Closed
Labels
bug Confirmed defect in package logic, deprecation notices, and PRs which fix them. duplicate Duplicate of an already-reported issue.

Comments

@elpagano
Copy link

screenshot_20170117_103511
The error was thrown from the file-icons package.
this happens every time y start atom but the package its works perfectly

@Alhadis
Copy link
Member

Alhadis commented Jan 17, 2017

Está siendo fijo. Duplicado de #519.

@Alhadis Alhadis closed this as completed Jan 17, 2017
@Alhadis Alhadis assigned Alhadis and unassigned Alhadis Jan 17, 2017
@Alhadis Alhadis added the duplicate Duplicate of an already-reported issue. label Jan 17, 2017
@salcedogeiner
Copy link

TypeError: document.styleSheets[Symbol.iterator] is not a function
at UI.getStyleElement (/.atom/packages/file-icons/lib/ui.js:151:33)
at UI.getThemeColour (/.atom/packages/file-icons/lib/ui.js:161:27)
at UI.checkMotif (/.atom/packages/file-icons/lib/ui.js:176:23)
at Immediate.setImmediate (/.atom/packages/file-icons/lib/ui.js:24:29)
at tryOnImmediate (timers.js:534:15)
at processImmediate [as _immediateCallback] (timers.js:514:5)


### Commands

 -0:10.4.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always.theme-material-syntax.theme-one-dark-ui)

@Alhadis
Copy link
Member

Alhadis commented Jan 30, 2017

@salcedogeiner Run this in devtools, please:

console.log(document);
console.log(document.constructor);
console.log(document.styleSheets);
console.log(document.styleSheets.constructor);

Show me what it outputs.

@hurtauda
Copy link

hurtauda commented Feb 2, 2017

I got the same error so here are the outputs :

TypeError: document.styleSheets[Symbol.iterator] is not a function
    at UI.getStyleElement (/home/ahurtaud/.atom/packages/file-icons/lib/ui.js:151:33)
    at UI.getThemeColour (/home/ahurtaud/.atom/packages/file-icons/lib/ui.js:161:27)
    at UI.checkMotif (/home/ahurtaud/.atom/packages/file-icons/lib/ui.js:176:23)
    at Immediate.setImmediate (/home/ahurtaud/.atom/packages/file-icons/lib/ui.js:24:29)
    at tryOnImmediate (timers.js:534:15)
    at processImmediate [as _immediateCallback] (timers.js:514:5)

console.log(document);
image

console.log(document.constructor);
image

console.log(document.styleSheets);
image
[ ... ]
image

console.log(document.styleSheets.constructor);
image

I hope that helps

@DannyLeiton
Copy link

So? What's the solution for this?

@Alhadis
Copy link
Member

Alhadis commented Feb 2, 2017

If people would stop commenting on duplicated issues and confine discussion to the appropriate one, they'd notice this issue has already been solved.

That's it. From now on, duplicate issues are being locked. I can't keep giving the same update to three different mobs of people at entirely asynchronous intervals.

@file-icons file-icons locked and limited conversation to collaborators Feb 2, 2017
@Alhadis Alhadis added the bug Confirmed defect in package logic, deprecation notices, and PRs which fix them. label Oct 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Confirmed defect in package logic, deprecation notices, and PRs which fix them. duplicate Duplicate of an already-reported issue.
Projects
None yet
Development

No branches or pull requests

5 participants