UnKnown source issue
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
}
Uncaught syntax error in react JS and appwrite
I am creating a website using React Js and Appwrite and I keep getting an error:-
HomePage.jsx:2 Uncaught SyntaxError: The requested module ‘/node_modules/.vite/deps/appwrite.js?v=47c77f22’ does not provide an export named ‘createClient’ (at HomePage.jsx:2:10)