-
-
Notifications
You must be signed in to change notification settings - Fork 233
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
Uncaught (in promise) TypeError: right-hand side of 'in' should be an object, got null #333
Comments
You've probably made the same mistake as #298 but it's hard to tell without you showing more of your code. |
I got the same error message. My problem was a wrong selector |
In my case, I defined the autocomplete engine before the autocomplete element was defined. Either move the engine definition to later in your html, or wrap it in a function you call at the end. |
I ran into the same error:
|
@TarekRaafat I am having the same issue with autoComplete.js/src/autoComplete.js Line 56 in 220ada6
The name is set in two places in the autoComplete constructor: the this.name property, and as a name field in the this.options property.autoComplete.js/src/autoComplete.js Lines 53 to 56 in 220ada6
The this.name property is hardcoded, and the name field in the this.options parameter is not actually used in the configuring stage: autoComplete.js/src/services/configure.js Lines 9 to 28 in 220ada6
TypeError as soon as it tries to create the wrapper.
I'd imagine that the solution is to set |
window.onload = function() {
const autoCompleteJS = new autoComplete({ config });
};
The text was updated successfully, but these errors were encountered: