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

Wrapper Error and Google Warning #44

Open
silveltman opened this issue Jun 21, 2023 · 1 comment
Open

Wrapper Error and Google Warning #44

silveltman opened this issue Jun 21, 2023 · 1 comment

Comments

@silveltman
Copy link

silveltman commented Jun 21, 2023

I just ran my site build in CloudCannon with Rosey and got the following output including an error and warning:

$ npx rosey build --source dist --default-language nl
[15:21:28] Cleaning dist/translated_site

[15:21:28] Finished loading locales.
[15:21:28] Starting wrapping characters.
[15:21:28] Environment variable GOOGLE_APPLICATION_CREDENTIALS not found
[15:21:28] use the flag `--credentials /PATH/TO/CREDENTIALS/google-creds.json` calling the cli interface
[15:21:28] or use `export GOOGLE_APPLICATION_CREDENTIALS="/PATH/TO/CREDENTIALS/google-creds.json"`
[15:21:28] Starting cloning assets.
[15:21:28] Finished wrapping characters.
[15:21:28] Finished cloning assets.
[15:21:28] errReadDir Error: ENOENT: no such file or directory, scandir 'rosey/wrapped'
[15:21:28] Wrapped files not found: ENOENT: no such file or directory, scandir 'rosey/wrapped'
[15:21:28] Finished re-loading wrapped locales.

[15:21:28] Starting translating pages.

[15:21:28] Finished translating pages.
[15:21:28] Starting cloning prelocalised pages.
[15:21:28] Finished cloning prelocalised pages.
[15:21:28] Starting generating the Redirect HTML page.
[15:21:28] Finished generating the Redirect HTML page.

[15:21:28] ⏱  process completed in 675 ms. 
Done in 3.39s.

I searched through the Rosey docs and nowhere can I find anything on GOOGLE nor WRAPPED. Nor do I have any of this in my repo.

For the CloudCannon team, my url is: https://graceful-map.cloudvent.net/

@silveltman silveltman changed the title GOOGLE_CREDENTIALS Error GOOGLE_CREDENTIALS Warning Jun 21, 2023
@silveltman silveltman changed the title GOOGLE_CREDENTIALS Warning Wrapper Error and Google Warning Jun 21, 2023
@rycoll
Copy link
Contributor

rycoll commented Jun 28, 2023

It looks like CloudCannon has an older version of Rosey globally installed. When you run npx rosey, you're actually picking up that install, rather than installing the latest version as you might think. Additionally, the installed version is a major version behind, and there are some breaking changes that you're likely hitting.

We'll look into preventing this issue from appearing in the future on CloudCannon. For safety, it's best to use npx rosey@latest, or specify Rosey as a dependency in a package.json for the site. I'll update our guides to make that clearer. Let us know if that solves the issue for you!

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

2 participants