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
Hi,
I'm using cradle in a Electron app developed in nodejs and react so I have installe cradle with node.
When I use this module in debug or in dist mode everythings going well but when I produce a release version, in devtool I have this error:
Uncaught TypeError: i.Cache is not a constructor in line 2 of cradle.js file
I implement the connection with: var cradle = require('cradle'); cradle.setup({ host: settings.database.hostname, post: settings.database.port, cache: true, raw: false, forceSave: true }); var c = new (cradle.Connection); var db = c.database(settings.database.name);
where settings is a json object with database connection information.
The text was updated successfully, but these errors were encountered:
Hi,
I'm using cradle in a Electron app developed in nodejs and react so I have installe cradle with node.
When I use this module in debug or in dist mode everythings going well but when I produce a release version, in devtool I have this error:
Uncaught TypeError: i.Cache is not a constructor
in line 2 of cradle.js fileI implement the connection with:
var cradle = require('cradle'); cradle.setup({ host: settings.database.hostname, post: settings.database.port, cache: true, raw: false, forceSave: true }); var c = new (cradle.Connection); var db = c.database(settings.database.name);
where
settings
is a json object with database connection information.The text was updated successfully, but these errors were encountered: