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.

TypeError: Cannot use 'in' operator to search for 'onfocusin' in undefined

See original GitHub issue

I’m getting an error while importing carbon components like below:

import {Modal, DataTableV2} from 'carbon-components';

TypeError: Cannot use 'in' operator to search for 'onfocusin' in undefined at Function.init (/node_modules/carbon-components/umd/globals/js/mixins/init-component-by-event.js:61:116)

TypeError: target.querySelectorAll is not a function at Function.init (/node_modules/carbon-components/umd/globals/js/mixins/init-component-by-event.js:61:116)

Has anyone here faced this issue while importing? Do I need to load any dependencies with this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:26 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
asudohcommented, Dec 4, 2017

@rehat101 You seem to still have left-aligned overflow menu. Given it’s no longer relevant to the error this issue originally describes, you may create another issue with a public site link that reproduces the flip style being ignored. Thanks!

0reactions
nullhookcommented, Dec 4, 2017

@asudoh here you go

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: cannot use 'in' operator to search for 'x' in 'y'
The in operator can only be used to check if a property is in an object. You can't search in strings, or in...
Read more >
Cannot use 'in' operator to search for 'sth' in undefined
The issue here is that the undefined value does not have any properties. You need to perform a check on the return value...
Read more >
Uncaught TypeError Cannot use 'in' operator to search for '4' in
i get error like this : "Uncaught TypeError Cannot use 'in' operator to search for '4' in .." when trying to loop td...
Read more >
Cannot Use 'In' Operator To Search For '18' In Canjs - ADocLib
I get an error saying TypeError: Cannot use 'in' operator to search for 'onfocusin' Should I load the library as a global through...
Read more >
JSOC/base/export/webapps/js/jquery-2.1.0.js - view - 1.1
"undefined" ? window : this, function( window, noGlobal ) { // Can't do this because ... version of jQuery being used jquery: version,...
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