Comments (8)
I just had the same issue using [email protected]
which also uses the filterBy
name for a method. Managed to fix it by pulling the filterBy method from the package and build in in manually where I needed it and removed the package.
from vue2-filters.
so the solution is? manual build?
from vue2-filters.
@t0n1zz I ended up pulling out vue-filters
and manually copying the pieces we were using. So yeah, I think manual build...
I think it would be very quick to update to allow optional namespacing via an alternative import, but I'm hesitant to implement that unless the maintainer expresses any interest in that approach. (cc @freearhey)
from vue2-filters.
FWIW @t0n1zz @erikverbeek @akhoury I have implemented a version of this and submitted it as a PR. Would be happy for feedback on better approaches, or if you want to install directly from a branch I can create one that includes a recompiled distfile
from vue2-filters.
@kball oh yea i would love to try it... i "must' need this package and on the other end i want to also adding select2 or something like that... to do search on select and multiple select but both of them just can't work together
from vue2-filters.
I uploaded a change that I believe solves this problem. Now just wait to leave the new version
from vue2-filters.
Will this bug ever get fixed in a release version? The fix is now 27 days old but the last release version is from January.
from vue2-filters.
If you came across this bug please upgrade the package up to v0.4.0. In new version global mixins has been removed and errors must disappear.
Now in order to use methods such as limitBy
, filterBy
, find
or orderBy
, you need to register Vue2Filters.mixin
in the component manually, like so:
import Vue2Filters from 'vue2-filters'
export default {
...
mixins: [Vue2Filters.mixin],
...
}
Hope this helps.
from vue2-filters.
Related Issues (20)
- Vue 3 support? HOT 5
- awesome
- Configuration provided is not overriding! HOT 1
- Could you add a time filter, like the DateTimePicker in element ui? HOT 1
- esm build? HOT 1
- Percentage Filter HOT 2
- bytes filter enhancement HOT 4
- Percent filter should not apply multiplications (or always apply it) - negative numbers break. HOT 9
- Change the number of digits after the decimal point does not work when rounding HOT 3
- Option for NaN value for currency filter HOT 1
- How to format Brazil Currency R$ ? HOT 1
- number() option thousandsSeparator does not work HOT 1
- Vue2Filters is not defined error on single html page HOT 1
- Thousand separate when using pluralize HOT 1
- FilterBy object inside another object HOT 1
- percent filter decimalSeparator
- filterBy could be better. HOT 2
- Global configuration update HOT 1
- Order by on nested objects HOT 1
- [Feature request] Add billions (B) and trillions (T) units to number filter HOT 2
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 vue2-filters.