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

Unhandled error for [ng:cloak] #237

Closed
alexewerlof opened this issue Sep 5, 2015 · 0 comments
Closed

Unhandled error for [ng:cloak] #237

alexewerlof opened this issue Sep 5, 2015 · 0 comments

Comments

@alexewerlof
Copy link

Angular has a couple of CSS rules that take care of its cloaking feature and it looks like this:

[ng:cloak],
[ng-cloak],
[data-ng-cloak],
[x-ng-cloak],
.ng-cloak,
.x-ng-cloak {
  display: none !important;
}

Interestingly CSSO fails when it tries to parse those rules:

events.js:85
      throw er; // Unhandled 'error' event
            ^
TypeError: Cannot read property '0' of undefined

(same error as #233)

I noticed that the main issue is when [ng:cloak] is involved and when I eliminate it, CSSO doesn't crash.
Is it an erroneus CSS or should CSSO be able to handle it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants