Closed alex-page closed 6 years ago
I'm getting this same error on a Windows machine:
Windows 10 Any browser Node v6.9.1 Gulp cli v1.2.2
The above change fixes this for me, but you also need to make sure you have a:
plugins: {}
in your patternlab-config.js file.
Awesome that worked for me, I assume you meant: "plugins": {},
Will be resolved for everyone when https://github.com/pattern-lab/patternlab-node/pull/558 hits a release
FYI, I have the same error with the Grunt edition. Therefor I think the bug should be fixed in the styleguidekit-assets-default project. Adding a simple check for the (global) variable plugins
will do the trick.
if (!plugins) {
return;
}
https://github.com/pattern-lab/styleguidekit-assets-default/blob/master/src/js/plugin-loader.js#L19
styleguidekit assets default is cross-platform with the PHP version, which is not suffering the issue. The fix I linked to above will resolve this for gulp and grunt node editions. stay tuned
I am using Pattern Lab Node- Gulp Edition
v1.3.4
onMac
.Expected Behavior
No errors in console on a fresh install.
Actual Behavior
Cannot read property 'length' of undefined - plugins.length() in patternlab-viewer.js
Steps to Reproduce
gulp patternlab:serve