In my Gruntfile, I've integrated the grunt-crx task as shown below:
crx: {
packExtension: {
src: "../build/unpacked",
dest: "../build/dist"
}
}
Whenever I execute the crx task on its own, I encounter the following error message:
Warning: Object function lodash(value) {
// exit early if already wrapped
if (value && value.__wrapped__) {
return value;
}
// allow invoking `lodash` without the `new` operator
if (!(this instanceof lodash)) {
return new lodash(value);
}
this.__wrapped__ = value;
} has no method 'assign' Use --force to continue
Even when using '--force' with grunt from the command line to execute the task, I still face the same issue.
I'm fairly new to grunt and grunt-crx, so I'm unsure whether this problem is related to grunt itself or specific to the grunt-crx task. Any assistance in resolving this matter would be greatly appreciated!
For your information, I have attempted the following troubleshooting steps, but unfortunately, none of them have been successful:
- Avoiding the use of relative paths
- Specifying a pem file along with src and dest
- Relocating ../build/unpacked to ./packed for all files to be in the same directory (I had to resort to either this approach or utilize the force option with other grunt tasks.)