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

Closure Compiler fails with duplicate member "cool" error #5457

Closed
taschukMax opened this issue Feb 2, 2021 · 2 comments · Fixed by #5458
Closed

Closure Compiler fails with duplicate member "cool" error #5457

taschukMax opened this issue Feb 2, 2021 · 2 comments · Fixed by #5458
Labels
bug something broken

Comments

@taschukMax
Copy link

When trying to use Closure Compiler it fails with the following error:

Class or object literal contains duplicate member "cool". In non-strict code, the last duplicate will overwrite the others. 16739| "cool":[{"index":0,"rgb":[0,255,255]},{"index":1,"rgb":[255,0,255]}]

When reviewing non minified version of plotly it does contain 2 "cool" keys

@archmoj
Copy link
Contributor

archmoj commented Feb 2, 2021

Nice catch!
Reported in bpostlethwaite/colormap#27

@archmoj archmoj added the bug something broken label Feb 2, 2021
@taschukMax
Copy link
Author

@archmoj thanks for picking this up!

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

Successfully merging a pull request may close this issue.

2 participants