Closed Sopamo closed 6 years ago
Hmmm, I think it's related with umd
module that I choose ya ?
Will find the solution.
Can you help me @Sopamo to validated this changes. You can install newest version. Hope it will solve this issue.
Thanks for answering so quickly! The window issue is gone, but the filter isn't registered at all now. I built a small reproduction for you:
https://codesandbox.io/s/oom7p2y2y9
You can see in the console (in the bottom bar) that the currency filter isn't available.
Hmmm, embarrassing 😅 I will try to find another solution
Having the same issue in my project as well. Currency filter is no longer recognized, output in console:
[Vue warn]: Failed to resolve filter: currency
"Vue warn]: Failed to resolve filter: currency" Same error over here
Please downgrade to 2.2.0 first. While I tried to find root cause.
Workaround:
import VueCurrencyFilter from 'vue-currency-filter/VueCurrencyFilter';
Can you try with version 2.2.4 @Niklv @benomas @Anatolie @Sopamo
Yep, that fixed it. Thanks a lot!
It seems like the switch to webpack 4 made it so that this package doesn't work with Server Side Rendering any more, because in the dist file a window object is inserted, which doesn't exist in node applications.