sails-react
sails-react copied to clipboard
Error sails 0.9.16
{ "status": 500, "errors": [ "Arguments to path.join must be strings" ] }
Could u give some more information? e.g. standard configuration? or the called url? Thanks!
Got the same error. Just run 'node app.js' after 'npm install'. Looks like package doesn't work with latest sails, react.
error: Sending 500 ("Server Error") response: TypeError: Arguments to path.join must be strings at path.js:360:15 at Array.filter (native) at Object.exports.join (path.js:358:36) at module.exports (/Users/aksonov/Downloads/authapp/node_modules/sails-react/lib/render.js:29:29) at /Users/aksonov/Downloads/authapp/node_modules/sails-react/lib/engine.js:25:7 at /Users/aksonov/Downloads/authapp/node_modules/sails/node_modules/ejs-locals/index.js:134:7 at Object.exports.renderFile (/Users/aksonov/Downloads/authapp/node_modules/ejs/lib/ejs.js:318:3) at module.exports (/Users/aksonov/Downloads/authapp/node_modules/sails/node_modules/ejs-locals/index.js:85:7) at /Users/aksonov/Downloads/authapp/node_modules/sails/node_modules/ejs-locals/index.js:131:7 at Object.exports.renderFile (/Users/aksonov/Downloads/authapp/node_modules/ejs/lib/ejs.js:318:3) [TypeError: Arguments to path.join must be strings]
Got the same error and got probably a solution. Problem is undefined sails.config.rootPath. This config is undefined when you start the app non standard way - for example "node app.js". If you start your app via sails lift, additional variables are set and everything works fine.