-
Notifications
You must be signed in to change notification settings - Fork 32
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
Comments
This should be generated on startup. Make sure node has permissions to write to the public/js folder. |
The same thing happened for me. Permissions look fine. I'm still looking into why it may have happened. |
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. |
@fantapop a pr would be great! |
this happened to me too... can´t really seem to fix it - what needs to be in that file? |
same thing for me. workaround: |
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!
The text was updated successfully, but these errors were encountered: