Open kunjesh1 opened 4 years ago
@kunjesh1 I was facing a similar issue as well. I was able to import with the following code
import { get as levenshtein } from 'fast-levenshtein';
levenshtein('cat', 'bat');
Hope that helps!
Why not just do
import * as levenshtein from 'fast-levenshtein';
And use it the same way as with require
levenshtein.get('cat', 'bat');
I want to import the npm in the client side instead of require.How to do that?