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

Nikhil Khandelwal updated CB-10429:
-----------------------------------
    Labels: browserify reproduced triaged  (was: browserify triaged wfc)

> Syntax error when browserifying javascript files
> ------------------------------------------------
>
>                 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to