i Have done from my socialMedia application and its working fine on my local but after deploying it i found this error in console which make the app doesnot work
here is the error
Uncaught TypeError: Cannot read properties of undefined (reading ‘replace’)
at mk.setEndpoint (index-3sC1djpH.js:67:161796)
at index-3sC1djpH.js:67:196439
it comes from this function which i didnot create btw
setEndpoint(t) {
return this.config.endpoint = t,
this.config.endpointRealtime = this.config.endpointRealtime || this.config.endpoint.replace(“https://”, “wss://”).replace(“http://”, “ws://”),
this
}
please if anyone know how to fix this problem
solution for this problem
Ahmed00Abdalnaby is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.