Autocomplete script cshtml error but just in server side

I have been having a problem with my project.
I’m creating a script to receive a response from the server in json, which will help me make an autocomplet from a textbox.

The problem is that on the local machine in debug it works perfectly, when placing it on the server it gives an error “SyntaxError: ‘* ,: x’ is not a valid selector” I have already validated the css and js if they are on the server and everything is ok.

Can anyone help me

.NET Foundation Website | Blog | Projects | Code of Conduct