Nativescript: ERROR SyntaxError: JSON Parse error: Unexpected EOF

Created on 9 May 2017  路  5Comments  路  Source: NativeScript/NativeScript

I am getting Unexpected EOF file after Successfully launching on Emulator.

Due to this Error I am not able to translate Home screen but Expect that Each screen translate works.

Problem: First time logged in app Translation works but If I force close application and re-run it translation not working..

CONSOLE LOG file:///app/tns_modules/@angular/core/./bundles/core.umd.js:3032:20: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
CONSOLE LOG file:///app/app.component.ts:null:null: firebase.init done
CONSOLE ERROR file:///app/tns_modules/@angular/core/./bundles/core.umd.js:1091:24: ERROR SyntaxError: JSON Parse error: Unexpected EOF

Running on Xcode getting following Error

CONSOLE LOG file:///app/app.component.js:59:24: firebase.init done
2017-05-09 10:21:12.263593+0200 Hieber[508:84865] CONSOLE ERROR file:///app/tns_modules/@angular/core/./bundles/core.umd.js:1091:24: ERROR Error: Failed to create file at path '/var/containers/Bundle/Application/6E5AC3EB-13A5-42C1-B479-EE3E2C7F0758/Hieber.app/app/i18n/de-DE.json'

CONSOLE ERROR file:///app/tns_modules/@angular/core/./bundles/core.umd.js:1091:24: ERROR Error: Failed to create file at path '/var/containers/Bundle/Application/6E5AC3EB-13A5-42C1-B479-EE3E2C7F0758/Hieber.app/app/i18n/de-DE.json'
question

Most helpful comment

@pap5508 you can also try this for translation in your app.

All 5 comments

Hey @pap5508 I suspect that your issue is closely related to this one
If you are using ng2-translate, can you please try the solution provided in the linked issue?

@NickIliev : tried that too but nothing works. Preparing demo for you so that you can test it.
I'm using @ngx-translate/core

Hey @pap5508 yes sending demo project would be great - remove node_modules and platforms and you should be able to attach it here as an archive.

@pap5508 you can also try this for translation in your app.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

valentinstoychev picture valentinstoychev  路  3Comments

nirsalon picture nirsalon  路  3Comments

pocesar picture pocesar  路  3Comments

Pourya8366 picture Pourya8366  路  3Comments

dhanalakshmitawwa picture dhanalakshmitawwa  路  3Comments