matteoredaelli / botkit-starter-web-rasa-nlu

botkit starter template using the web interface and rasa-nlu middleware
GNU General Public License v3.0
5 stars 1 forks source link

express_middleware missing exception #1

Open Purus opened 6 years ago

Purus commented 6 years ago
// import express middlewares that are present in /components/express_middleware
var normalizedPath = require("path").join(__dirname, "express_middleware");
require("fs").readdirSync(normalizedPath).forEach(function(file) {
    require("./express_middleware/" + file)(webserver, controller);
});

express_middleware is not present in components folder.

Purus commented 6 years ago

When you have pushed the code to Github, the empty express_middleware folder is not pushed as it might have been empty. So this is causing the issue. Adding an empty express_middleware will work.