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

jQuery.Deferred exception: $(...).tagit is not a function TypeError: $(...).tagit is not a function #429

Closed
heardofdezz opened this issue Oct 11, 2021 · 1 comment

Comments

@heardofdezz
Copy link

heardofdezz commented Oct 11, 2021

I'm having an issue working with tag-it.

followed setup "tutorials",
i'm work on symfony using bootstrap, i copy the tag-it.js file and hooked it on my webpack config, imported the required CDN.

But it seems like it isnt working i get this error each i load the page where i need the form input to be displayed. the input isnt getting displayed i get this error :

jQuery.Deferred exception: $(...).tagit is not a function TypeError: $(...).tagit is not a function
tagit() seems to not excist even its sucessfuly being included
`
//// Webpack config


.addEntry('js/app', [
        './assets/tag-it.js',
        './node_modules/jquery/dist/jquery.min.js',
        './node_modules/popper.js/dist/popper.js'
        ........................`
<script> : ``` ` $(document).ready(function() { $("#myTags").tagit(); });` ``` ``` ``` Uncaught TypeError: $(...).tagit is not a function at HTMLDocument. (add_qcm:315) at mightThrow (jquery-3.5.1.js:3762) at process (jquery-3.5.1.js:3830)` ```
@heardofdezz
Copy link
Author

The required js files werent properly loaded by my wepback. sorry for the ticket

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

No branches or pull requests

1 participant