I have an older project that uses grunt and was on node 8. I'm doing incremental upgrades to modernize the build process and when upgrading to node 10 and node-wp-i18n 1.2.8 I encounter the following error:
grunt i18n
Loading "add-textdomain.js" tasks...ERROR
>> SyntaxError: Unexpected token ;
Loading "makepot.js" tasks...ERROR
>> SyntaxError: Unexpected token ;
Warning: Task "addtextdomain" not found. Use --force to continue.
node-wp-i18n is installed as a dependency of grunt-wp-i18n and is run from a grunt task. It works perfectly fine if I install node-wp-i18n@1.2.7 or earlier. But if I let NPM upgrade it to the latest point release of 1.2.8 the taks fails with that error.
I reviewed the changes from 1.2.7 and 1.2.8 and don't see anything obvious that would cause this. Any ideas what the culprit could be? I could lock the dependency to node-wp-i18n@1.2.7 but that isn't great for the future.
I have an older project that uses grunt and was on node 8. I'm doing incremental upgrades to modernize the build process and when upgrading to node 10 and node-wp-i18n 1.2.8 I encounter the following error:
node-wp-i18n is installed as a dependency of
grunt-wp-i18nand is run from a grunt task. It works perfectly fine if I installnode-wp-i18n@1.2.7or earlier. But if I let NPM upgrade it to the latest point release of 1.2.8 the taks fails with that error.I reviewed the changes from 1.2.7 and 1.2.8 and don't see anything obvious that would cause this. Any ideas what the culprit could be? I could lock the dependency to
node-wp-i18n@1.2.7but that isn't great for the future.