Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4708F200CD1 for ; Wed, 26 Jul 2017 14:38:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 45C09168C1F; Wed, 26 Jul 2017 12:38:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8B3A6168C1C for ; Wed, 26 Jul 2017 14:38:16 +0200 (CEST) Received: (qmail 26506 invoked by uid 500); 26 Jul 2017 12:38:15 -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 26495 invoked by uid 99); 26 Jul 2017 12:38:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2017 12:38:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 39942C1D35 for ; Wed, 26 Jul 2017 12:38:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.2 X-Spam-Level: X-Spam-Status: No, score=-99.2 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id U2FUHGYdowvL for ; Wed, 26 Jul 2017 12:38:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id D641C5F3CF for ; Wed, 26 Jul 2017 12:38:07 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BE1CBE0D7D for ; Wed, 26 Jul 2017 12:38:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 003E623F15 for ; Wed, 26 Jul 2017 12:38:03 +0000 (UTC) Date: Wed, 26 Jul 2017 12:38:02 +0000 (UTC) From: "Dawid (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13092) Plugin addition fails | Uncaught TypeError: undefined is not a function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 26 Jul 2017 12:38:17 -0000 [ https://issues.apache.org/jira/browse/CB-13092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16101616#comment-16101616 ] Dawid commented on CB-13092: ---------------------------- I am sure I could, but I would like to do things right if I do them and this would take a lot of time, which I don't have atm as an computer science student with two jobs :/ interesting, do I have to wait for deviceready? Here is the link to the project on an github repo. Take a look if you have time [github dummy repo | https://github.com/Fakerinc/cordova-test] > Plugin addition fails | Uncaught TypeError: undefined is not a function > ----------------------------------------------------------------------- > > Key: CB-13092 > URL: https://issues.apache.org/jira/browse/CB-13092 > Project: Apache Cordova > Issue Type: Bug > Components: AllPlugins > Affects Versions: 7.0.1 > Environment: Windows 8 64 bit Enterprise > Android Studio 2.3.3 > {code:java} > $ cordova -v > You have been opted out of telemetry. To change this, run: cordova telemetry on. > 7.0.1 > $ npm --version > 3.10.10 > $ git --version > git version 2.13.2.windows.1 > $ grunt --version > grunt-cli v1.2.0 > $ bower --version > 1.8.0 > {code} > Reporter: Dawid > Priority: Minor > > Hey guys, > For a few days now, I am trying to add a plugin myself based on the documentation on the cordova homepage. [https://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/index.html] > I started with the German version (because I am from Germany) and was disappointed. It is written terribly. Just the quality of the text itself is bad. I didn't go far enough to evaluate the content. > I switched to the English version which is good, and I think I followed every step and have everything set up as it should be, but when I try to run my project (or a blank project for that matter) with the plugin added, I get the following error: > {code:java} > 07-24 03:51:15.036 29983-29983/? D/CordovaWebViewImpl: onPageDidNavigate(file:///android_asset/www/index.html) > 07-24 03:51:15.247 29983-29983/io.cordova.hellocordova D/JsMessageQueue: Set native->JS mode to EvalBridgeMode > 07-24 03:51:15.286 29983-29983/io.cordova.hellocordova D/SystemWebChromeClient: file:///android_asset/www/plugins/cordova-plugin-echo-js/www/echo.js: Line 28 : Uncaught TypeError: undefined is not a function > 07-24 03:51:15.286 29983-29983/io.cordova.hellocordova I/chromium: [INFO:CONSOLE(28)] "Uncaught TypeError: undefined is not a function", source: file:///android_asset/www/plugins/cordova-plugin-echo-js/www/echo.js (28) > 07-24 03:51:15.290 29983-29983/io.cordova.hellocordova D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html) > 07-24 03:51:15.384 29983-29983/io.cordova.hellocordova D/SystemWebChromeClient: file:///android_asset/www/js/index.js: Line 36 : Uncaught TypeError: Cannot read property 'querySelector' of null > 07-24 03:51:15.384 29983-29983/io.cordova.hellocordova I/chromium: [INFO:CONSOLE(36)] "Uncaught TypeError: Cannot read property 'querySelector' of null", source: file:///android_asset/www/js/index.js (36) > {code} > line 28 is the first line from following code: > {code:java} > window.echo("echome", function(echoValue){ > alert(echoValue == "echome"); > }); > {code} > I googled a bit of course and tried various "solutions". Removing the plugins, removing the platforms adding them back up. Starting a project from scratch. Adding the plugins in different ways and other stuff that I am missing now for sure. > I appreciate any kind of help. This problem is really annoying me. > Best regards > Dawid -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org