[
https://issues.apache.org/jira/browse/CB-10429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Buijs updated CB-10429:
----------------------------
Description:
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}
was:
When building a Cordova project that includes this plugin with the --browserify
option, a syntax error is 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}
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}
Summary: Syntax error when browserifying javascript files (was: Syntax
error when browserifying requestFileSystem.js)
> 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
>
> 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]