Open robbiemu opened 8 years ago
Thanks for reporting. Does config.json exist? What is logged when you try to catch constructor errors by using a callback:
let config = new Config("config.json", {
defaults: {
foo: "bar",
colors: {
tree: "green",
sky: "blue"
}
}
}, (err) => console.log(err));
I like the simplicity and general pattern in the documentation, but it doesn't work. I can't follow the basic documentation:
produces
TypeError: Cannot read property 'get' of undefined
I get the same behavior if I move the get/set calls to the callback