After installing the resource-bundle package in my project, I attempted to use it in my main.js file:
/*main.js*/
var co=require('co');
var loader = require('resource-bundle');
co(function*(){
...
...
}).catch(onerror);
Upon examining the index.js file of the resource-bundle package, I found the following code snippet:
/*index.js*/
module.exports = function*(locale, dir, baseName) {
...
...
...
}
However, an error message was returned:
Cannot assign to read only property 'exports' of object '#<Object>'
What could be causing this issue?