Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i.Cache is not a constructor #321

Open
pixsiro opened this issue Dec 22, 2016 · 0 comments
Open

i.Cache is not a constructor #321

pixsiro opened this issue Dec 22, 2016 · 0 comments

Comments

@pixsiro
Copy link

pixsiro commented Dec 22, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant