Main.js:20 EXCEPTION: Failed to execute 'setAttribute' on 'Element': '(click' is not a valid attribute name

Since a while ago I have this problem and delays when loading plugins as sqlite, I would like to know if anyone to subscribe this, this happens at random times when selecting a button or a radio from an alert, sometimes it can work on that same button and others No, do you know what it can be? I do not know what to do about this

Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.4
Xcode version: Not installed

    {
  "name": "ionic-hello-world",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "2.2.1",
    "@angular/compiler": "2.2.1",
    "@angular/compiler-cli": "2.2.1",
    "@angular/core": "2.2.1",
    "@angular/forms": "2.2.1",
    "@angular/http": "2.2.1",
    "@angular/platform-browser": "2.2.1",
    "@angular/platform-browser-dynamic": "2.2.1",
    "@angular/platform-server": "2.2.1",
    "@ionic/storage": "^1.1.7",
    "alasql": "^0.3.6",
    "ionic-angular": "2.0.0",
    "ionic-native": "2.4.1",
    "ionicons": "3.0.0",
    "rxjs": "5.0.0-beta.12",
    "sw-toolbox": "3.4.0",
    "zone.js": "0.6.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "1.0.0",
    "typescript": "2.0.9"
  },
  "cordovaPlugins": [
    "cordova-plugin-whitelist",
    "cordova-plugin-console",
    "cordova-plugin-statusbar",
    "cordova-plugin-device",
    "cordova-plugin-splashscreen",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": [],
  "description": "StudioEducativo: An Ionic project"
}

Those are some really old versions of things. Does the problem happen with currently supported versions?

Hello, I installed it until 2.2.0, obtaining the same problem, the only one that is not tested is 3.0 since some time ago I try to migrate to that version but I do not know how to update and pass on to it, Working with this version but I do not know if it’s bad luck or bad programming but terribly I get errors so, let’s say the application is not fired at 5000s sometimes and things like that, the problem with this is that we say a radio group that I’m using now that it’s always there A checked item only used = “{{var}}” and it works, now it does not work and I’m sure it’s because I have a bigger problem, I do not know if you know how to fix or what package is very stable or …

Follow the various “steps to update” sections of the CHANGELOG.

You most likely have to see the modules installed?


Hi let me know if this has a solution? The truth is giving me great headaches :frowning:

Did you update your package.json to current versions of things? I makes no sense to debug software that uses old dependencies, because most probably it is caused by one of these.

Hello, the truth is not , if I have changed between several versions of my package trying to solve it but I do not want to go to version 3 even, do you know that package json works properly if I have to change the requirements of ionic v3? That problem appears

It really frustrates me to no end when people post screenshots of code. Please don’t do this in the future. That being said, the error looks pretty straightforward to me: you left off a closing parenthesis of (click) somewhere.

1 Like

I’m sorry it will not happen again, but the error appears when I click here, and in other clicks that are closed in this exactly,

(click)="hijoSelctd(hijo);"

Template parse errors have hard-to-predict timing. Search your entire project for (click=.

1 Like

Hey thank you very much, it was a click that was not used at all, I really thank you