You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was an error Uncaught ReferenceError: ndf2 is not defined when running the code.
Here is the diff that solved my problem:
diff --git a/node_modules/@yatiac/name-that-color/index.js b/node_modules/@yatiac/name-that-color/index.js
index a7d3bd3..b4b257c 100644
--- a/node_modules/@yatiac/name-that-color/index.js+++ b/node_modules/@yatiac/name-that-color/index.js@@ -26,7 +26,7 @@ module.exports = function name(color) {
var r = rgbVal[0], g = rgbVal[1], b = rgbVal[2];
var hslVal = hsl(color);
var h = hslVal[0], s = hslVal[1], l = hslVal[2];
- var ndf1 = 0; ndf2 = 0; ndf = 0;+ var ndf1 = 0, ndf2 = 0, ndf = 0;
var cl = -1, df = -1;
for (var i = 0; i < names.length; i++) {
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
@yatiac/[email protected]
for the project I'm working on.There was an error
Uncaught ReferenceError: ndf2 is not defined
when running the code.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: