-
-
Notifications
You must be signed in to change notification settings - Fork 161
error on color.js #21
Comments
BTW, running on a Fedora 19 64 bits. |
That same error Mac OS X Any idea to resolve? |
Possibly related to these issues: Marak/colors.js#60 You guys might want to try filing a bug for that repo as I do not think this is a problem with my usage. I can take a look and see if there is anything I can find, but I am guessing it is something to do with the bug above. |
Running into the same error. I reviewed the color.js issue but I cannot see a fix atm. |
Same thing Mavericks beta TypeError: Cannot redefine property: underline |
Looks like the commit on that colors repo is just waiting to be merged. I pushed a new version to update the colors version in the I am not able to replicate this issue, but if anyone who can can lend some insight and +1's to that ticket, please do so. |
Also getting this error on my side. yo version 1.0.0-rc.1.4 Error:
|
Looks like I am not seeing this because I am still on yo 1.0.0-beta-7. In the above commit, the |
I made the patch from Marak/colors.js#60 and it works. Until they merge and push it to npm this will not work. So if you just apply the change manually where it shows the error posted above it works again. I will be changing over to chalk, but it still doesn't fix the issue because other dependancies rely on colors. And let this be a lesson on why you do not override or extend core objects in javascript....at least not without being careful.... |
7d5045e Moved to chalk. With the above patch to the colors module it is all working for me. I will leave this open until the patch is no longer necessary. |
No need to apologize @wesleytodd... :) But I can confirm that doing the patch/fix thingy manualy works. Now a |
yes after patching colors.js in winston/node_modules it works without errors, thanks |
thanks, worked for backbone requirejs boilerplate as well. |
@jedimorten This looks like it will be an issue for all generators. I submitted an issue on Yo to see what we can drum up to get this fixed. |
Comment from yeoman/yo#68
|
@sindresorhus Thanks for the expert input! And I totally agree about not extending builtins, as per above:
|
This looks to be fixed. Closing. |
/usr/lib/node_modules/generator-wordpress/node_modules/colors/colors.js:53
Object.defineProperty(String.prototype, color, {
^
TypeError: Cannot redefine property: underline
at Function.defineProperty (native)
at addProperty (/usr/lib/node_modules/generator-wordpress/node_modules/colors/colors.js:53:12)
at /usr/lib/node_modules/generator-wordpress/node_modules/colors/colors.js:189:3
at Array.forEach (native)
at Object. (/usr/lib/node_modules/generator-wordpress/node_modules/colors/colors.js:184:3)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
The text was updated successfully, but these errors were encountered: