Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Assertion Failed: The element helper polyfill encountered an unexpected error #92

Open
glbatistabh opened this issue Sep 13, 2022 · 6 comments

Comments

@glbatistabh
Copy link

Hi! Please can someone help me with this error?
I can't solve it and I'm thinking it's a bug.

Error:

Uncaught Error: Assertion Failed: The `element` helper polyfill encountered an unexpected error. Please report the issue at http://github.com/tildeio/ember-element-helper with the usage and conditions that caused this error.
    at assert (index.js:181:1)
    at element.js:14:1
    at index.js:5258:1
    at deprecateMutationsInTrackingTransaction (validator.js:191:1)
    at index.js:5257:1
    at SimpleClassicHelperManager.getValue (index.js:5268:1)
    at manager.js:971:1
    at reference.js:170:1
    at track (validator.js:835:1)
    at valueForRef (reference.js:169:1)

package.json

shell>cat package.json | grep leaflet
    "ember-leaflet": "^5.0.1",
    "leaflet": "^1.8.0",

Environment:

shell>ember -v
ember-cli: 3.28.5
node: 14.15.5
os: linux x64

Printscreen:
image

@brianjgeiger
Copy link

I get the same error with ember-cli-meta-tags v7.0.0

Screen Shot 2022-09-19 at 10 00 46 AM

@brianjgeiger
Copy link

Upgrading ember-element-helper to 0.6.1 fixed the problem with ember-cli-meta-tags, but I'm getting the same problem with one of our internal uses of the element helper now, so I'll investigate that further.

@brianjgeiger
Copy link

I followed the suggestions on this thread - #84 - and pinned the resolution of the version of ember-element-helper to 0.6.1 in the package.json. That fixed my problems; apparently different addons were using different versions, which caused the problems above.

@glbatistabh
Copy link
Author

I also tried to pinned the version of ember-element-helper (ember install ember-element-helper@^0.6.1) in my package.json, but it didn't work for me... :-(

@glbatistabh
Copy link
Author

I followed the suggestions on this thread - #84 - and pinned the resolution of the version of ember-element-helper to 0.6.1 in the package.json. That fixed my problems; apparently different addons were using different versions, which caused the problems above.

@brianjgeiger can you share your package.json file with me?

@brianjgeiger
Copy link

brianjgeiger commented Sep 21, 2022

Sure, you can find the diff with my changes at https://github.com/CenterForOpenScience/ember-osf-web/pull/1660/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519 - the resolutions section is key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants