Open kleanthiCRM opened 2 years ago
Hello, Can you please provide the code behind getAutocompleteItems field? Andrew
Thanks for the heads up. It seems that Microsoft changed the way how PCF controls work. The issue is related to the fact that the callback function is not available from the PCF code for some reason. I will work on the enhancement of the code. This issue broke the extensibility of a few controls. Andrew
Seems like they're at it again! I'm getting the same behaviour but different Console responses.
Uncaught SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at e._reloadWithStaticContent (clientsdk?version=1:2:25410) at e._handleGlobalError (clientsdk?version=1:2:26716) at _globalErrorHandler._handleGlobalErrorFn (clientsdk?version=1:2:9568) at clientsdk?version=1:2:62692 at Array.forEach (<anonymous>) at e.handleError (clientsdk?version=1:2:62664) at Object.invokeGuardedCallbackDev (react-dom.development.js:677:45) at invokeGuardedCallback (react-dom.development.js:696:126) at beginWork$1 (react-dom.development.js:4036:1) at performUnitOfWork (react-dom.development.js:3825:150) at workLoopSync (react-dom.development.js:3818:30) at renderRootSync (react-dom.development.js:3815:195) at performSyncWorkOnRoot (react-dom.development.js:3745:121) at eval (react-dom.development.js:2069:188) at unstable_runWithPriority (scheduler.development.js:468:16)
and
Error: Objects are not valid as a React child (found: object with keys {readyState, getResponseHeader, getAllResponseHeaders, setRequestHeader, overrideMimeType, statusCode, abort, state, always, catch, pipe, then, promise, progress, done, fail, status, statusText}). If you meant to render a collection of children, use an array instead. at throwOnInvalidObjectType (react-dom.development.js:2254:827) at reconcileChildFibers (react-dom.development.js:2393:713) at reconcileChildren (react-dom.development.js:2696:22) at updateHostComponent (react-dom.development.js:2833:69) at beginWork (react-dom.development.js:3105:1073) at HTMLUnknownElement.callCallback (react-dom.development.js:657:119) at Object.invokeGuardedCallbackDev (react-dom.development.js:677:45) at invokeGuardedCallback (react-dom.development.js:696:126) at beginWork$1 (react-dom.development.js:4036:1) at performUnitOfWork (react-dom.development.js:3825:150) at workLoopSync (react-dom.development.js:3818:30) at renderRootSync (react-dom.development.js:3815:195) at performSyncWorkOnRoot (react-dom.development.js:3745:121) at eval (react-dom.development.js:2069:188) at unstable_runWithPriority (scheduler.development.js:468:16) at runWithPriority$1 (react-dom.development.js:2063:1059)
and
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. at AddressAutocompleteControl (webpack://pcf_tools_652ac3f36e1e4bca82eb3c1dc44e6fad/./AddressAutocomplete/Components/AddressAutocompleteControl.tsx?:99:24)
Update: I changed the API to Google from Bing and everything worked again.
Hi Andrew, I installed the managed solution in a trial environment but when I add the Custom Auto-Complete PCF control to a text field, on the first key press on the field, I get an error in the console and the input text field disappears. I also created the required JS WebResource and configured it accordingly. I am adding the error details and the screen captures. Thank you for your great contribution to the community!
Screen capture of the error:
the text field control configuration:
How the field looks like before I start typing anything in it: