Skip to content

Upgrading from 1.2.7 to 1.2.8 in Node 10 Project causes fatal errors #31

@acketon

Description

@acketon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions