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

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?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 26 (13 by maintainers)

Commits related to this issue

Most upvoted comments

@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!