Hi to everyone, yesterday I tried to upgrade my ionic 5 angular 11 project to ionic 6 and angular 12.
Now every time I open a modal with inputs or buttons I get this error:
Uncaught InternalError: too much recursion
invoke http://localhost:8100/polyfills.js:1
run http://localhost:8100/polyfills.js:1
runOutsideAngular http://localhost:8100/main.js:1
onHandleError http://localhost:8100/main.js:1
handleError http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
w http://localhost:8100/polyfills.js:1
E http://localhost:8100/main.js:1
Nt http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
invokeTask http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
w http://localhost:8100/polyfills.js:1
focusFirstDescendant http://localhost:8100/8220.js:1
trapKeyboardFocus http://localhost:8100/8220.js:1
handleFocus http://localhost:8100/8220.js:1
invokeTask http://localhost:8100/polyfills.js:1
onInvokeTask http://localhost:8100/main.js:1
invokeTask http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
w http://localhost:8100/polyfills.js:1
E http://localhost:8100/main.js:1
Nt http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
invokeTask http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
w http://localhost:8100/polyfills.js:1
focusFirstDescendant http://localhost:8100/8220.js:1
trapKeyboardFocus http://localhost:8100/8220.js:1
handleFocus http://localhost:8100/8220.js:1
invokeTask http://localhost:8100/polyfills.js:1
onInvokeTask http://localhost:8100/main.js:1
invokeTask http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
w http://localhost:8100/polyfills.js:1
E http://localhost:8100/main.js:1
Nt http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
invokeTask http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
w http://localhost:8100/polyfills.js:1
focusFirstDescendant http://localhost:8100/8220.js:1
trapKeyboardFocus http://localhost:8100/8220.js:1
handleFocus http://localhost:8100/8220.js:1
invokeTask http://localhost:8100/polyfills.js:1
onInvokeTask http://localhost:8100/main.js:1
invokeTask http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
w http://localhost:8100/polyfills.js:1
E http://localhost:8100/main.js:1
Nt http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
invokeTask http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
w http://localhost:8100/polyfills.js:1
focusFirstDescendant http://localhost:8100/8220.js:1
trapKeyboardFocus http://localhost:8100/8220.js:1
handleFocus http://localhost:8100/8220.js:1
invokeTask http://localhost:8100/polyfills.js:1
onInvokeTask http://localhost:8100/main.js:1
invokeTask http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
w http://localhost:8100/polyfills.js:1
E http://localhost:8100/main.js:1
Nt http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
invokeTask http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
w http://localhost:8100/polyfills.js:1
focusFirstDescendant http://localhost:8100/8220.js:1
trapKeyboardFocus http://localhost:8100/8220.js:1
handleFocus http://localhost:8100/8220.js:1
invokeTask http://localhost:8100/polyfills.js:1
onInvokeTask http://localhost:8100/main.js:1
invokeTask http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
w http://localhost:8100/polyfills.js:1
E http://localhost:8100/main.js:1
Nt http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
ye http://localhost:8100/main.js:1
invokeTask http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
w http://localhost:8100/polyfills.js:1
focusFirstDescendant http://localhost:8100/8220.js:1
trapKeyboardFocus http://localhost:8100/8220.js:1
handleFocus http://localhost:8100/8220.js:1
invokeTask http://localhost:8100/polyfills.js:1
onInvokeTask http://localhost:8100/main.js:1
invokeTask http://localhost:8100/polyfills.js:1
runTask http://localhost:8100/polyfills.js:1
invokeTask http://localhost:8100/polyfills.js:1
y http://localhost:8100/polyfills.js:1
So after trying to fix this with no success, I reverted the package.json to the previous working version, and I had to upgrade jasmine and capacitor versions to fix some npm errors.
Now the too much recursion error is disappeared, but I can’t use ion-inputs anymore. When I click on the input nothing happens, I can’t write on it. It only displays data if I pass it in the value property.
I don’t understand, for sure there is something missing in my package.json
This is my old package.json (with ionic 5 and angular 11):
"dependencies": {
"@angular/animations": "^11.2.10",
"@angular/cdk": "^11.2.10",
"@angular/common": "~11.2.10",
"@angular/core": "~11.2.10",
"@angular/forms": "~11.2.10",
"@angular/material": "^11.2.10",
"@angular/platform-browser": "~11.2.10",
"@angular/platform-browser-dynamic": "~11.2.10",
"@angular/router": "~11.2.10",
"@capacitor/android": "^2.5.0",
"@capacitor/core": "2.5.0",
"@ionic/angular": "^5.6.6",
"@ionic/pwa-elements": "^3.0.2",
"@ngx-translate/core": "^13.0.0",
"@ngx-translate/http-loader": "^6.0.0",
"file-saver": "^2.0.5",
"ionic-angular": "^3.9.10",
"moment": "^2.29.1",
"rxjs": "~6.6.0",
"rxjs-compat": "^6.6.7",
"tslib": "^2.0.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1102.4",
"@angular-eslint/builder": "2.0.2",
"@angular-eslint/eslint-plugin": "2.0.2",
"@angular-eslint/eslint-plugin-template": "2.0.2",
"@angular-eslint/template-parser": "2.0.2",
"@angular/cli": "~11.2.4",
"@angular/compiler": "~11.2.0",
"@angular/compiler-cli": "~11.2.0",
"@angular/language-service": "~11.2.0",
"@capacitor/cli": "2.5.0",
"@ionic/angular-toolkit": "^3.1.1",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "4.16.1",
"@typescript-eslint/parser": "4.16.1",
"eslint": "^7.6.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsdoc": "30.7.6",
"eslint-plugin-prefer-arrow": "1.2.2",
"jasmine-core": "~3.8.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.2.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"typescript": "~4.0.2"
}
Is there something wrong with these configurations?
4 posts - 3 participants