Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle

后端 未结 8 1704
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-24 10:12

I am receiving this warning message in my chrome console for my react-native project. Do you have any idea why I am getting this?

This is the complete message:

8条回答
  •  既然无缘
    2020-12-24 10:59

    In my case, i had the same warning after the installation of a 'package'

    and in their documentation, it was import SomeFunc from 'package'

    and instantly the warning showed up

    Require cycles are allowed but can result in uninitialized values. Consider refactoring to remove the need for a cycle.

    but as soon as I destructure the SomeFunc there was no more warning

    import {SomeFunc} from 'package'

    please look at the destructuring

提交回复
热议问题