Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gettext-extract - Unexpected Token ( #106

Open
stvinz opened this issue Jun 8, 2021 · 0 comments
Open

gettext-extract - Unexpected Token ( #106

stvinz opened this issue Jun 8, 2021 · 0 comments

Comments

@stvinz
Copy link

stvinz commented Jun 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant