cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12091) Error: Unexpected token } in JSON at position 1957
Date Mon, 31 Oct 2016 07:11:58 GMT

    [ https://issues.apache.org/jira/browse/CB-12091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15621477#comment-15621477
] 

Shazron Abdullah commented on CB-12091:
---------------------------------------

Hi,
This is probably an ionic issue. I do not encounter this problem adding platforms with cordova-cli
6.4.0. (I even tried node 7)

> Error: Unexpected token } in JSON at position 1957
> --------------------------------------------------
>
>                 Key: CB-12091
>                 URL: https://issues.apache.org/jira/browse/CB-12091
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: AllPlatforms
>    Affects Versions: 6.3.2
>         Environment: I am using 6.4.0 cordova... I am not able to select this version
in fix version, so I have used 6.3.2.
> Here are my environment details
> mac OS 10.12.1
> $ cordova -v
> 6.4.0
> $ ionic -v
> 2.1.4
> $ node -v
> v7.0.0
> $ npm -v
> 3.10.8
>            Reporter: Sridharreddy U
>             Fix For: 6.3.2
>
>
> After the upgrade to Cordova 6.4.0, I am getting following error while adding platforms
(android or ios) or any plugin. This error is coming at end of the output.
> "Error: Unexpected token } in JSON at position 1957"
> However, plugins, platform getting added successfully.
> Here is output (removed my project specific info),
> $ ionic platform add ios
> Running command:
> ....
> Adding ios project...
> ..
> Creating Cordova project for the iOS platform:
> ..
> iOS project created with cordova-ios@4.3.0
> ..
> Error: Unexpected token } in JSON at position 1957
> $ ionic platform add android@5.2.2
> Running command:
> Adding android project...
> Creating Cordova project for the Android platform:
> 	Path: platforms/android
> 	Package: com.test.myapp
> 	Name:
> 	Activity: MainActivity
> 	Android target: android-23
> Android project created with cordova-android@5.2.2
> Error: Unexpected token } in JSON at position 1957
> I am not sure consequences of this error, currently I am not able run the android app
as it is not able to load the plug-ins while launching.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message