cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Khandelwal (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-10429) Syntax error when browserifying cordova-plugin-file
Date Mon, 25 Jan 2016 21:37:40 GMT

     [ https://issues.apache.org/jira/browse/CB-10429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nikhil Khandelwal resolved CB-10429.
------------------------------------
    Resolution: Duplicate

> Syntax error when browserifying cordova-plugin-file
> ---------------------------------------------------
>
>                 Key: CB-10429
>                 URL: https://issues.apache.org/jira/browse/CB-10429
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>            Reporter: Alex Buijs
>              Labels: browserify, reproduced, triaged
>
> When building a Cordova project that includes this plugin with the --browserify option,
two syntax errors are raised:
> {code}
> events.js:142
>       throw er; // Unhandled 'error' event
>       ^
> SyntaxError: 'return' outside of function (31:4) (while aliasify was processing /builds/youngcapital/youngcapital_mobile/plugins/cordova-plugin-file/www/requestFileSystem.js)
while parsing file: /builds/youngcapital/youngcapital_mobile/plugins/cordova-plugin-file/www/requestFileSystem.js
> {code}
> and:
> {code}
> events.js:142
>       throw er; // Unhandled 'error' event
>       ^
> SyntaxError: 'return' outside of function (31:4) (while aliasify was processing /builds/youngcapital/youngcapital_mobile/plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js)
while parsing file: /builds/youngcapital/youngcapital_mobile/plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js
> {code}
> Steps to reproduce:
> {code}
> cordova create hello com.example.hello HelloWorld
> cd hello
> cordova platform add android
> cordova plugin add cordova-plugin-file
> cordova prepare --browserify
> {code}



--
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