react-nativenpmyarnpkgfuse.js

How to import fuse.js into a react native project, getting an error


I'm getting the error Internal Error react-packager has encountered an internal error

When i try to import Fuse from 'fuse.js'; in one of my screens

I installed to my react-native project by yarn add fuse.js


Solution

  • I know this answer is a little late, but I hope it will help someone else in the future:

    import Fuse from 'fuse.js/src';

    That worked for me!