Comments (4)
That shouldn't be necessary, I think the umd (https://webpack.js.org/configuration/output/) template is broken. I'll see if I can check/fix things this week!
from fuzzy-search.
Turns out switching from:
import FuzzySearch from 'fuzzy-search'
// to
const FuzzySearch = require('fuzzy-search');
worked.
I will leave this open just in case there is something meaningful to this failure.
Thanks again!
from fuzzy-search.
I had to import as: import * as FuzzySearch from 'fuzzy-search';
to resolve this. Otherwise the types weren't coming in properly too.
from fuzzy-search.
Apparently #52 also fixes this issue. It's working for me now, so I'm closing this issue.
Feel free to reopen it if the problem persist for you!
from fuzzy-search.
Related Issues (20)
- How i can filter array of array with objects? HOT 2
- Fix travis ci
- Make it really zero dependencies HOT 1
- searching multiple keys at once HOT 2
- sort not ordering best (exact) matches on top HOT 2
- Not working with empty Arrays HOT 1
- Not working with VueJS HOT 1
- fuzzy-search >= 2.2.0 does not compile on NodeJS HOT 2
- Enquiry HOT 1
- Advanced key matching? HOT 2
- Sort field does not work as expected HOT 1
- Highlight matching characters HOT 5
- Build fails with fuzzy-search HOT 2
- How to search an array of strings without keys? HOT 1
- Does it support for non sequential word search? HOT 4
- ESM and IE support
- TS4.1 HOT 1
- Fuzzy search does not work on string with . or special characters HOT 1
- Please put this on a cdn :)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuzzy-search.