Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Error building translations #106

Closed
userkilled opened this issue Mar 31, 2023 · 8 comments
Closed

Error building translations #106

userkilled opened this issue Mar 31, 2023 · 8 comments
Labels
area: i18n Related to translations type: question Further information is requested

Comments

@userkilled
Copy link
Contributor

@zyrouge/symphony-cli@0.0.0 i18n:build /home/symphony
ts-node ./cli/i18n/build.ts

/home/symphony/node_modules/yaml/dist/compose/composer.js:33
if (prelude[i + 1]?.[0] !== '#')
^

SyntaxError: Unexpected token .
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object.require.extensions.(anonymous function) [as .js] (/home/symphony/node_modules/ts-node/src/index.ts:1608:43)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/symphony/node_modules/yaml/dist/index.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:778:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @zyrouge/symphony-cli@0.0.0 i18n:build: ts-node ./cli/i18n/build.ts
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @zyrouge/symphony-cli@0.0.0 i18n:build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


To be honest, I don’t understand anything. What the problem is. It is possible that the version is not suitable, I have npm v 6.14.4

@zyrouge
Copy link
Owner

zyrouge commented Mar 31, 2023

Seems like it failed to parse the yaml file. You have an invalid . somewhere in your file.

@zyrouge zyrouge changed the title error build translate Error building translations Mar 31, 2023
@zyrouge
Copy link
Owner

zyrouge commented Mar 31, 2023

You can open a draft PR if you need help.

@zyrouge zyrouge added type: question Further information is requested area: i18n Related to translations labels Mar 31, 2023
@userkilled
Copy link
Contributor Author

userkilled commented Mar 31, 2023

eemeli/yaml#394

need version node =>14
(

https://github.com/nodesource/distribution

@userkilled
Copy link
Contributor Author

my node version 10.x

@zyrouge
Copy link
Owner

zyrouge commented Apr 1, 2023

Update to v18.x version.

@userkilled
Copy link
Contributor Author

and I still had to clone the project again, t.to. lock_file interfered

@userkilled
Copy link
Contributor Author

npm v 9.5.0

@zyrouge
Copy link
Owner

zyrouge commented Apr 1, 2023

and I still had to clone the project again, t.to. lock_file interfered

Check if,

  • Node version is 18.x (NPM version doesn't matter if it's up-to-date)
  • You install the dependencies.

Not sure what you mean by that.

Repository owner locked and limited conversation to collaborators Apr 1, 2023
@zyrouge zyrouge converted this issue into discussion #107 Apr 1, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
area: i18n Related to translations type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants