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 5EA5818D39 for ; Mon, 25 Jan 2016 21:37:40 +0000 (UTC) Received: (qmail 84838 invoked by uid 500); 25 Jan 2016 21:37:40 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 84800 invoked by uid 500); 25 Jan 2016 21:37:40 -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 84493 invoked by uid 99); 25 Jan 2016 21:37: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 21:37:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 01C522C1F57 for ; Mon, 25 Jan 2016 21:37:40 +0000 (UTC) Date: Mon, 25 Jan 2016 21:37:40 +0000 (UTC) From: "Nikhil Khandelwal (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-10429) Syntax error when browserifying cordova-plugin-file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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