You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Survey Creator with Custom Widgets - The Cannot read properties of undefined (reading 'getType') exception is thrown on an attempt to add a new question
#3454
Closed
JaneSjs opened this issue
Sep 20, 2022
· 4 comments
Uncaught TypeError: Cannot read properties of undefined (reading 'getType')
at ./src/property-grid/index.ts.PropertyJSONGenerator.createJSON (index.ts:533:28)
at ./src/property-grid/index.ts.PropertyJSONGenerator.toJSON (index.ts:457:17)
at ./src/property-grid/index.ts.PropertyJSONGenerator.setupObjPanel (index.ts:470:25)
at ./src/property-grid/restfull.ts.PropertyGridEditorQuestionRestfull.onCreated (restfull.ts:42:67)
at Object.onCreated (index.ts:222:11)
at ./src/property-grid/index.ts.PropertyJSONGenerator.onQuestionsCreated (index.ts:497:36)
at ./src/property-grid/index.ts.PropertyJSONGenerator.setupObjPanel (index.ts:471:10)
at ./src/property-grid/index.ts.PropertyGridModel.setObj (index.ts:757:55)
at PropertyGridModel.set (index.ts:700:10)
at ./src/creator-base.ts.CreatorBase.selectionChanged (creator-base.ts:2511:36)
at ./src/creator-base.ts.CreatorBase.selectElement (creator-base.ts:2362:12)
at ./src/creator-base.ts.CreatorBase.clickToolboxItem (creator-base.ts:2538:12)
at ./src/creator-base.ts.CreatorBase.addNewQuestionInPage (creator-base.ts:3050:10)
at descriptor.value [as addNewQuestionInPage] (index.ts:53:40)
at ./src/components/page.ts.PageAdorner.addNewQuestion (page.ts:108:18)
at onClick (Page.tsx:102:20)
at HTMLUnknownElement.callCallback (react-dom.development.js:4164:14)
at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:16)
at invokeGuardedCallback (react-dom.development.js:4277:31)
at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:4291:25)
at executeDispatch (react-dom.development.js:9041:3)
at processDispatchQueueItemsInOrder (react-dom.development.js:9073:7)
at processDispatchQueue (react-dom.development.js:9086:5)
at dispatchEventsForPlugins (react-dom.development.js:9097:3)
at eval (react-dom.development.js:9288:12)
at batchedUpdates$1 (react-dom.development.js:26140:12)
at batchedUpdates (react-dom.development.js:3991:12)
at dispatchEventForPluginEventSystem (react-dom.development.js:9287:3)
at dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay (react-dom.development.js:6465:5)
at dispatchEvent (react-dom.development.js:6457:5)
at dispatchDiscreteEvent (react-dom.development.js:6430:5)
To reproduce the issue, run the Survey Creator | Custom Widgets | React demo in CodeSandbox, and click Add Question. The following exception is thrown:
CodeSandbox Link.
This issue was reported at:
The text was updated successfully, but these errors were encountered: