simbo / auto-plug

Auto-require plugin packages by prefix. (for i.e. Gulp, Grunt or other heavy plugin-dependent packages)
https://www.npmjs.com/package/auto-plug
MIT License
5 stars 0 forks source link

Property 'string' of object #<Object> is not a function #4

Closed Truemedia closed 8 years ago

Truemedia commented 8 years ago

Get this when launching with a slush (gulp) file that relies on this library.

Here is the full output: /web/node_test/slush-blueprints/node_modules/auto-plug/node_modules/defined-options/node_modules/validate-by-shorthand/lib/validate-value.js:16 if (is.string(validate)) { ^ TypeError: Property 'string' of object # is not a function at validateValue (/web/node_test/slush-blueprints/node_modules/auto-plug/node_modules/defined-options/node_modules/validate-by-shorthand/lib/validate-value.js:16:12) at AutoPlug.setOptions (/web/node_test/slush-blueprints/node_modules/auto-plug/lib/auto-plug.js:99:15) at new AutoPlug (/web/node_test/slush-blueprints/node_modules/auto-plug/lib/auto-plug.js:89:10) at module.exports (/web/node_test/slush-blueprints/node_modules/auto-plug/index.js:11:20) at Object. (/web/node_test/slush-blueprints/tasks/categories.js:3:39) 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)

Looks like one of the tests for a dependency of this library has failed (defined-options).

Truemedia commented 8 years ago

Tried installing the latest version of auto-plug, defined-options, validate-by-shorthand, but same issue.

Looks like it is one of the tests for validate-by-shorthand. Not used that library before so not sure what the fix would be.

simbo commented 8 years ago

Which Node version are you using?

simbo commented 8 years ago

As you are not answering and i can't reproduce that error, i'm closing this.