ember-element-helper icon indicating copy to clipboard operation
ember-element-helper copied to clipboard

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

Open glbatistabh opened this issue 2 years ago • 6 comments

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

glbatistabh avatar Sep 13 '22 23:09 glbatistabh

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

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

brianjgeiger avatar Sep 19 '22 14:09 brianjgeiger

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 avatar Sep 19 '22 14:09 brianjgeiger

I followed the suggestions on this thread - https://github.com/tildeio/ember-element-helper/issues/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 avatar Sep 19 '22 19:09 brianjgeiger

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 avatar Sep 19 '22 22:09 glbatistabh

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?

glbatistabh avatar Sep 21 '22 03:09 glbatistabh

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.

brianjgeiger avatar Sep 21 '22 12:09 brianjgeiger