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
I am receiving the following error when I have setup a new styleguide:
Uncaught TypeError: Cannot read property '0' of undefined
views.js:158
gulpfile.js
var styleguide = require('devbridge-styleguide');
gulp.task('start-styleguide', function () {
styleguide.startServer();
var liveServer = require("live-server");
var params = {
port: 8888, // Set the server port. Defaults to 8080.
root: "./styleguide", // Set root directory that's being server. Defaults to cwd.
open: false, // When false, it won't load your browser by default.
file: "index.html", // When set, serve this file for every 404 (useful for single-page applications),
mount: [['/components', '../node_modules']], // Mount a directory to a route.
logLevel: 2, // 0 = errors only, 1 = some, 2 = lots
middleware: [function(req, res, next) { next(); }] // Takes an array of Connect-compatible middleware that are injected into the server middleware stack
};
liveServer.start(params);
});
Hi
I am receiving the following error when I have setup a new styleguide:
gulpfile.js
package.json
Stats:
Thanks,
James
The text was updated successfully, but these errors were encountered: