aurelia / dialog

A dialog plugin for Aurelia.
MIT License
106 stars 115 forks source link

templating load error "Too much recursion" when using aurelia-bootstrapper 2.2.0 #340

Closed chrsmrtn- closed 6 years ago

chrsmrtn- commented 6 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior: Unable to load app due to templating error for Aurelia-dialog. This worked fine with Aurelia-bootstrap version 2.1.1. Updated to Aurelia-bootstrap 2.2.0 and now get the following error in Firefox. Similar "recursive errors" show up in Edge and Chrome as well.

DEBUG [templating] importing resources for aurelia-dialog/ux-dialog-footer Array [] vendor-bundle.js:14042:8 Unhandled rejection InternalError: too much recursion _compileElement@http://localhost:9000/scripts/vendor-bundle.js:21438:9 _compileNode@http://localhost:9000/scripts/vendor-bundle.js:21252:18 _compileNode@http://localhost:9000/scripts/vendor-bundle.js:21274:28 compile@http://localhost:9000/scripts/vendor-bundle.js:21221:7 compile@http://localhost:9000/scripts/vendor-bundle.js:22695:37 _compileElement@http://localhost:9000/scripts/vendor-bundle.js:21528:16 _compileNode@http://localhost:9000/scripts/vendor-bundle.js:21252:18 _compileNode@http://localhost:9000/scripts/vendor-bundle.js:21274:28 compile@http://localhost:9000/scripts/vendor-bundle.js:21221:7 compile@http://localhost:9000/scripts/vendor-bundle.js:22695:37 _compileElement@http://localhost:9000/scripts/vendor-bundle.js:21528:16 _compileNode@http://localhost:9000/scripts/vendor-bundle.js:21252:18 _compileNode@http://localhost:9000/scripts/vendor-bundle.js:21274:28 compile… vendor-bundle.js:1398:13

Expected/desired behavior: The templating to load the Aurelia-dialog-footer without the recursion error

To reproduce update the Aurelia-bootstrapper to version 2.2.0 in a project that has the Aurelia-dialog working with Aurelia-bootstrapper 2.1.1

compgumby commented 6 years ago

Same here... Serious bummer.

Alexander-Taran commented 6 years ago

If you look at changes between 2.1.1 and 2.2.0, only the dependencies changed https://github.com/aurelia/bootstrapper/compare/c781a80515d35c9ab2f571138fe916d2bfe47d1f...master

StrahilKazlachev commented 6 years ago

Try a clean install of the dependencies.

chrsmrtn- commented 6 years ago

Will do. I think this means I just delete node_modules folder and run npm install? If not, how does one perform a clean install of dependencies?

StrahilKazlachev commented 6 years ago

Yes, delete and install.

chrsmrtn- commented 6 years ago

That did the trick. I did update NPM to version 5.6.0 in the meantime

elitemike commented 6 years ago

I am running into this issue and a clean install didn't help me. I'm using NPM 5.7.1

Update, I actually dropped down to 2.1.1. Deleted my node_modules and I'm still getting the error.

elitemike commented 6 years ago

For me it was the package-lock file. Deleting that got me going.