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 tried to hack up database access quickly by writing something like this CoffeeScript, expecting the package to guide me through informative errors:
app.use orm.express '',
define: (db) ->
return
, I run into this:
TypeError: Cannot call method 'replace' of undefined
at Object.exports.connect (<project>/node_modules/orm/lib/ORM.js:58:29)
at Object.module.exports (<project>/node_modules/orm/lib/Express.js:9:6)
at Object.exports.express (<project>/node_modules/orm/lib/ORM.js:20:30)
node-orm2 just blindly assumes that there is a colon to be matched in the connection string in ORM.js:58:
var proto = opts.protocol.replace(/:$/, '');
but in fact, we mustn't assume the connection is valid all the time.
The text was updated successfully, but these errors were encountered:
I tried to hack up database access quickly by writing something like this CoffeeScript, expecting the package to guide me through informative errors:
, I run into this:
node-orm2
just blindly assumes that there is a colon to be matched in the connection string inORM.js:58
:but in fact, we mustn't assume the connection is valid all the time.
The text was updated successfully, but these errors were encountered: