By Daniel Hargreaves on Wednesday, 22 January 2020
Posted in Native Mobile App
Replies 11
Likes 0
Views 516
Votes 0
Just an FYI... The configuration.js file in the app folder of the Application Source (Expo) download uses : instead of ;
Hello Daniel,

Sorry but I don't quite get you. What do you mean by : over ; ?
·
Wednesday, 22 January 2020 12:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Please see the screen shot, the configuration.js (ignore my name in the screen) used Colons instead of Semicolons. Hope that helps.
·
Wednesday, 22 January 2020 12:14
·
0 Likes
·
0 Votes
·
0 Comments
·
That is a correct JSON syntax Daniel. It should be : instead of ;

You can feed this into https://jsonlint.com/ if you want to beautify it.
·
Wednesday, 22 January 2020 12:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Understood that Colons are used for JSON, however this is a JS file and the Expo builder errors using Colons, I changed it to Semicolons and it compiled.
·
Wednesday, 22 January 2020 21:43
·
0 Likes
·
0 Votes
·
0 Comments
·
JSON is a valid javascript string and the js file is just an extension, it would not cause any errors. What errors do you get from Expo?
·
Thursday, 23 January 2020 01:01
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm going from memory... but something like. Error: File configuration.js Line (1,6) expected ';'

The routine would stop.
·
Thursday, 23 January 2020 01:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, it shouldn't because it is a correct syntax and all our builds uses the same format too. Anyway if you encounter this again, perhaps if you can send us the configuration.js
·
Thursday, 23 January 2020 02:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Did a fresh download and macOS install. Followed all of the steps and ran expo build:ios here is the error:


Building iOS bundle
SyntaxError: /Users/daniel/dev/easysocial-csi/app/configuration.js: Unexpected token, expected ";" (1:6)

> 1 | {"url":"https:\/\/csinext.org","app_name":"CSINext","terms_of_service":"https:\/\/http://www.csinext.org\/terms-of-use","privacy_policy":"https:\/\/www.csinext.org\/privacy-policy","ios_bundle":"org.csinext.easysocial","ios_p12":"CSI.next@2010","ios_p8":"B5XCY2YKC5","NSCameraUsageDescription":"This app uses the camera to allow user to capture the photo so that it can be use as their profile avatar, cover photo or directly share the moment in the news feed.","NSLocationWhenInUseUsageDescription":"This app uses user location to geologically tag the location to their story post.","NSPhotoLibraryUsageDescription":"This app uses user photo library to let the user upload their photos to their site albums.","header_background":"rgba(34, 93, 175, 1)","drawer_color":["#259ace","#3059f2"],"splash_background":"#ffffff","conversation_bubble_send":"rgba(255, 255, 255, 1)","conversation_bubble_receive":"rgba(255, 255, 255, 0.3)","photo_upload_limit":"10","photo_upload_quality":"50","photo_stream_mode":"thumbnail"}
| ^
› Closing Expo server
SyntaxError: /Users/daniel/dev/easysocial-csi/app/configuration.js: Unexpected token, expected ";" (1:6)

> 1 | {"url":"https:\/\/csinext.org","app_name":"CSINext","terms_of_service":"https:\/\/http://www.csinext.org\/terms-of-use","privacy_policy":"https:\/\/www.csinext.org\/privacy-policy","ios_bundle":"org.csinext.easysocial","ios_p12":"CSI.next@2010","ios_p8":"B5XCY2YKC5","NSCameraUsageDescription":"This app uses the camera to allow user to capture the photo so that it can be use as their profile avatar, cover photo or directly share the moment in the news feed.","NSLocationWhenInUseUsageDescription":"This app uses user location to geologically tag the location to their story post.","NSPhotoLibraryUsageDescription":"This app uses user photo library to let the user upload their photos to their site albums.","header_background":"rgba(34, 93, 175, 1)","drawer_color":["#259ace","#3059f2"],"splash_background":"#ffffff","conversation_bubble_send":"rgba(255, 255, 255, 1)","conversation_bubble_receive":"rgba(255, 255, 255, 0.3)","photo_upload_limit":"10","photo_upload_quality":"50","photo_stream_mode":"thumbnail"}
| ^
Failed building JavaScript bundle.
› Stopping Metro bundler
Packager URL http://127.0.0.1:19001/node_modules/expo/AppEntry.bundle?dev=false&minify=true&hot=false&platform=ios returned unexpected code 500. Please open your project in the Expo app and see if there are any errors. Also scroll up and make sure there were no errors or warnings when opening your project.
·
Thursday, 23 January 2020 12:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Daniel,

Okay, it looks like the problem was a missing prefix of "export default" . I have fixed this, you need to download the source again.

By the way, by changing the : to ; the app would fail as it wouldn't be able to get the property of the url.
·
Thursday, 23 January 2020 12:35
·
0 Likes
·
0 Votes
·
0 Comments
·
That makes sense, since I have just tried to post my .api to apple, and it was not happy. I'm really hoping to have the Professional account soon.
·
Thursday, 23 January 2020 12:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Yep, once you download the source again, it will be fine.
·
Thursday, 23 January 2020 14:00
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post