Closed mjadobson closed 13 years ago
My bad. This gives no errors:
var persistence = require("persistencejs/lib/persistence").persistence,
persistenceStore = require("persistencejs/lib/persistence.store.mysql");
I was just linking incorrectly.
I installed persistence.js today with npm. I firstly encountered the issue here: https://github.com/zefhemel/persistencejs/issues/39 , but fixed it by linking to the files in my "app.js" thusly:
Then I tried running my app again and node coughed up this error:
Digging into this, it appears that
persistence.OrFilter
is undefined, although my brief look through the source would indicate that it should be defined. NullFilter, AndFilter & PropertyFilter all seem to be defined according toconsole.log(persistence);
, so I do not understand why this particularly property isn't working.Commenting out lines 532->535 of persistence.store.sql.js stops the error, but I assume that would break functionality.
Has anyone else encountered this issue?
npm: 1.0.6, node: v0.5.0-pre, persistencejs: 0.2.5.