.autocomplete is not a function Error

后端 未结 15 2309
抹茶落季
抹茶落季 2020-11-27 18:19

below is my My Code




        
15条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 18:58

    I faced the same problem and try to solve, but unfortunately it wouldn't work anymore ! If you are facing the same problem and can't find the solution, it may help you.

    If you configure jquery/jquery-ui globally in webpack, you need to import autocomplete like this

    import { autocomplete } from 'webpack-jquery-ui';
    

    And you must include jquery-ui.css in the head section of html, i don't understand why its not working without it!

    
    

    Hope your problem will be solved.

    And make sure you include/install the following three

    1. jquery-ui-css
    2. jquery-ui
    3. jquery

提交回复
热议问题