Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue2Filters is not defined error on single html page #91

Closed
RaviRamDhali opened this issue Nov 4, 2020 · 1 comment
Closed

Vue2Filters is not defined error on single html page #91

RaviRamDhali opened this issue Nov 4, 2020 · 1 comment

Comments

@RaviRamDhali
Copy link

I have a single HTML page which is working with VueJs as expected. However when I try to use/load
vue-filter.min.js and mixins: [Vue2Filters.mixin] I get the follow error

Uncaught ReferenceError: Vue2Filters is not defined

<!-- VueJs -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-filter/0.2.5/vue-filter.min.js"></script>
     <script type="text/javascript">
            new Vue({
                mixins: [Vue2Filters.mixin],
                el: "#app",
                data: {
                    error: false,
                    customerid: customerId,
                    customer: [],
                    discountcodeTotal : 0
       }

I am not sure if its the placement of mixins call or if I am missing something else.

Any help would be appricated.

@freearhey
Copy link
Owner

Try using the latest version of the library from here: https://cdn.jsdelivr.net/npm/vue2-filters/dist/vue2-filters.min.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants