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

Missing file - public/javascripts/i18n.js #3

Open
ViktorNova opened this issue Mar 21, 2014 · 6 comments
Open

Missing file - public/javascripts/i18n.js #3

ViktorNova opened this issue Mar 21, 2014 · 6 comments

Comments

@ViktorNova
Copy link

New install - server crashes saying that public/javascripts/i18n.js does not exist

I got it running by copying the file from the old repo, but just letting ya know!

@marcusgreenwood
Copy link
Member

This should be generated on startup. Make sure node has permissions to write to the public/js folder.

@fantapop
Copy link

The same thing happened for me. Permissions look fine. I'm still looking into why it may have happened.

@fantapop
Copy link

Okay the problem is in lib/api/i18n.js InternationalizationAPI.prototype.update.

This line: existingTranslations = fs.readFileSync((compound.parent ? compound.parent.root : compound.root) + '/public/javascripts/i18n.js'); throws an exception when the i18n.js file doesn't exist yet.

It's easily fixed by either catching the exception and using empty string for existingTranslations or by using fs.exists to make sure its there first. I could send a pull request if you want.

@randunel
Copy link
Member

@fantapop a pr would be great!

@protofALk
Copy link

this happened to me too... can´t really seem to fix it - what needs to be in that file?

@ivanbrykov
Copy link

same thing for me. workaround:
touch public/javascripts/i18n.js

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

6 participants