Skip to content

i.Cache is not a constructor #321

@pixsiro

Description

@pixsiro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions