Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4925A18467 for ; Mon, 25 Jan 2016 19:20:41 +0000 (UTC) Received: (qmail 33776 invoked by uid 500); 25 Jan 2016 19:20:41 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 33741 invoked by uid 500); 25 Jan 2016 19:20:41 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 33229 invoked by uid 99); 25 Jan 2016 19:20:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jan 2016 19:20:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BE5E92C1F6E for ; Mon, 25 Jan 2016 19:20:40 +0000 (UTC) Date: Mon, 25 Jan 2016 19:20:40 +0000 (UTC) From: "Darryl Pogue (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-10419) cordova-plugin-file 4.0.0 error with browserify workflow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-10419?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D151158= 01#comment-15115801 ]=20 Darryl Pogue commented on CB-10419: ----------------------------------- This reproduces it for me: {code} cordova create testapp cd ./testapp cordova platform add android --save cordova plugin add cordova-plugin-file-transfer --save cordova build --browserify --verbose {code} > cordova-plugin-file 4.0.0 error with browserify workflow > -------------------------------------------------------- > > Key: CB-10419 > URL: https://issues.apache.org/jira/browse/CB-10419 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File > Affects Versions: 3.5.0 > Reporter: Darryl Pogue > Labels: regression, triaged > > We=E2=80=99ve recently started getting an error with aliasify and the fil= e plugin when building with a --browserify workflow. > {code} > events.js:72 > throw er; // Unhandled 'error' event > ^ > SyntaxError: 'return' outside of function (31:4) (while aliasify was proc= essing /projects/plugins/cordova-plugin-file/www/requestFileSystem.js) whil= e parsing file: /project/plugins/cordova-plugin-file/www/requestFileSystem.= js > {code} > This started when the File plugin v4.0.0 was released. It's caused by a r= eturn statement outside of a function: https://github.com/apache/cordova-pl= ugin-file/blob/77c63ef181313eba51652e1026cc730fc79ab9f2/www/requestFileSyst= em.js#L31 -- 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