question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

component inspector: mergings.indexOf is not a function

See original GitHub issue

Ember inspector is choking when opening the components tab. Does this error look familiar? Any tips if it is due to misconfiguration of my app?

Uncaught TypeError: mergings.indexOf is not a function
    at addNormalizedProperty (vendor.js:26525)
    at mergeMixins (vendor.js:26568)
    at applyMixin (vendor.js:26640)
    at Class.reopen (vendor.js:38658)
    at Class.retainObject (<anonymous>:2949:16)
    at Class.retainObject (<anonymous>:4642:42)
    at exports.default.inspectComponent (<anonymous>:1518:27)
    at <anonymous>:1329:34
    at Array.forEach (<anonymous>)
    at exports.default.componentsForController (<anonymous>:1321:18)

After it throws the error on the component tab, if I clear the console long and toggle back to say “routes” or “data”, then back to components, it doesn’t throw the error any longer and the components tab works.

Ember inspector version 3.8.0

App version: 3.8.1

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rwjbluecommented, May 21, 2019

@edeis53 - mergedProperties is a special property with special implementation details in Ember.Object (see the docs for details), if you are not trying to use that feature I’d suggest using a different property name is a good idea.

@rwwagner90 - mergedProperties is allowed to be null (which clobbers any merging behaviors), we should update the code in the inspector to handle null values (and add a test for it).

0reactions
rwwagner90commented, May 24, 2019

Thanks @rwjblue! @nummi would you have some time to implement what Rob suggested, while I am away? I’m not able to do much until June 3rd.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: .indexOf is not a function - Stack Overflow
I am new to JavaScript and I'm getting an error as below. Uncaught TypeError: time.indexOf is not a function. Gee, I really thought...
Read more >
Lodash Documentation
Creates an array of array values not included in the other given arrays using ... This method is like _.find except that it...
Read more >
Mocha - the fun, simple, flexible JavaScript test framework
simple, flexible, fun. Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun....
Read more >
"TypeError: value.indexOf is not a function" thrown when ...
When using g_form.setValue() to change the value for a Currency field and error message is thrown in the browser console with the following...
Read more >
Looker functions and operators | Google Cloud
A major part of these expressions is the functions and operators that ... Returns the start index of search_string in string if it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found