Twilio React Native - Unable to resolve module crypto

前端 未结 4 548
孤独总比滥情好
孤独总比滥情好 2020-12-31 12:24

I\'m working on implementing the twilio package into my react-native project and when I require it in my file the project wont load and I\'m seeing the followin

4条回答
  •  清酒与你
    2020-12-31 13:02

    I suggest you have a look there, plenty of solutions are given because none seem to fix for everyone.

    I suggest you try the following (taken from the issue from the link) :

    1. rm -rf node_modules
    2. rm -fr $TMPDIR/react-*
    3. watchman watch-del-all
    4. npm cache clean && npm install
    5. npm start from ./node_modules/react-native

    But check out the issue in its integrality, many found other fixes that worked for them.

提交回复
热议问题