Skip to content

gettext-extract - Unexpected Token ( #106

@stvinz

Description

@stvinz

First of all, thank you for the work!

What is the problem?

As the title says, I have a problem with getting easygettext to work in CentOs7.

The command I ran is:
./node_modules/.bin/gettext-extract --attributes v-i18n ./src/main.js

The errors I get are as follow:

// Base path is masked as ~ for confidentiality

~/node_modules/easygettext/src/extract.js:283
);
^

SyntaxError: Unexpected token )
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> 
(~/node_modules/easygettext/src/extract-cli.js:9:17)

Expected Behavior

No error, and text extracted successfully

Environment

CentOs7
easygettext 2.17.0
GNU gettext 0.19.8.1

Additional Info

I tried the same command on another instance using Windows 10, and it works without a problem.

The windows environment is as follows:
Windows 10
easygettext 2.17.0
GNU gettext 0.21

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