Skip to content

Uncaught TypeError: Cannot read property 'autocomplete' of undefined #218

Description

@gamesbook

I am in the process of upgrading an older Django project to Django 1.11 (prior to a move to version 2). I have installed django-selectable 1.3.0 but now the auto-complete no longer works. I have not changed any of the code in Django itself; this appears to be a JavaScript error BUT I am not a JavaScript programmer and cannot see how to solve this?

Notes below refer to the developer tools console in Chrome.

The Console tab reports:

Uncaught TypeError: Cannot read property 'autocomplete' of undefined at jquery.dj.selectable.js?v=1.3.0:17

The Network tab shows that jQuery-UI 1.11.4 and jQuery 1.12.4 are being loaded.

The Sources tab highlights line 17:

(function ($) {

	$.widget("ui.djselectable", $.ui.autocomplete, {

And hovering over the error shows the popup message "Uncaught TypeError: Cannot read property 'autocomplete' of undefined."

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions