What you were expecting:
I am using ReferenceInput inside a ArrayInput. Expecting ReferenceInput will work but unfortunately, it is not working.
What happened instead:
The page does not render.
Related code:
<ArrayInput source="subject">
<SimpleFormIterator>
<ReferenceInput label="Enter subject" source="subject_id" reference="subjects">
<AutocompleteInput optionText="name" />
</ReferenceInput>
<NumberInput label="Full marks" source="fullMarks" />
<NumberInput label="Pass marks" source="passMarks" />
</SimpleFormIterator>
</ArrayInput>
Other information:
Stack trace
Warning: Failed prop type: The prop resource is marked as required in ReferenceInput, but its value is undefined.
in ReferenceInput (created by TranslatedComponent(undefined))
in TranslatedComponent(undefined) (created by ConnectedField)
in ConnectedField (created by Connect(ConnectedField))
in Connect(ConnectedField) (created by Field)
in Field (created by FormField)
in FormField (created by Connect(FormField))
in Connect(FormField) (created by WithFormField)
in WithFormField (at exams.js:122)
in div (created by FormInput)
in FormInput (created by WithStyles(FormInput))
in WithStyles(FormInput) (created by SimpleFormIterator)
in section (created by SimpleFormIterator)
in li (created by SimpleFormIterator)
in Transition (created by CSSTransition)
in CSSTransition (created by SimpleFormIterator)
in div (created by TransitionGroup)
in TransitionGroup (created by SimpleFormIterator)
in ul (created by SimpleFormIterator)
in SimpleFormIterator (created by WithStyles(SimpleFormIterator))
in WithStyles(SimpleFormIterator) (created by TranslatedComponent(WithStyles(SimpleFormIterator)))
in TranslatedComponent(WithStyles(SimpleFormIterator)) (at exams.js:121)
in Unknown (created by ConnectedFieldArray)
in ConnectedFieldArray (created by Connect(ConnectedFieldArray))
in Connect(ConnectedFieldArray) (created by FieldArray)
in FieldArray (created by ArrayInput)
in div (created by FormControl)
in FormControl (created by WithStyles(FormControl))
in WithStyles(FormControl) (created by ArrayInput)
in ArrayInput (at exams.js:120)
in div (created by FormInput)
in FormInput (created by WithStyles(FormInput))
in WithStyles(FormInput) (created by FormTab)
in span (created by FormTab)
in FormTab (at exams.js:119)
in div (created by TabbedForm)
in form (created by TabbedForm)
in TabbedForm (created by WithStyles(TabbedForm))
in WithStyles(TabbedForm) (created by Form(WithStyles(TabbedForm)))
in Form(WithStyles(TabbedForm)) (created by Connect(Form(WithStyles(TabbedForm))))
in Connect(Form(WithStyles(TabbedForm))) (created by ReduxForm)
in ReduxForm (created by TranslatedComponent(undefined))
in TranslatedComponent(undefined) (created by Connect(TranslatedComponent(undefined)))
in Connect(TranslatedComponent(undefined)) (at exams.js:108)
in div (created by Paper)
in Paper (created by WithStyles(Paper))
in WithStyles(Paper) (created by Card)
in Card (created by WithStyles(Card))
in WithStyles(Card) (created by CreateView)
in div (created by CreateView)
in CreateView (created by CreateController)
in CreateController (created by TranslatedComponent(undefined))
in TranslatedComponent(undefined) (created by Connect(TranslatedComponent(undefined)))
in Connect(TranslatedComponent(undefined)) (created by Create)
in Create (at exams.js:107)
in ExamCreate (created by WithPermissions)
in WithPermissions (created by Connect(WithPermissions))
in Connect(WithPermissions) (created by getContext(Connect(WithPermissions)))
in getContext(Connect(WithPermissions)) (created by Route)
in Route (created by Resource)
in Switch (created by Resource)
in Resource (created by Connect(Resource))
in Connect(Resource) (at App.js:70)
in Route (created by RoutesWithLayout)
in Switch (created by RoutesWithLayout)
in RoutesWithLayout (created by Route)
in div (created by Layout)
in main (created by Layout)
in div (created by Layout)
in div (created by Layout)
in Layout (created by WithStyles(Layout))
in WithStyles(Layout) (created by Connect(WithStyles(Layout)))
in Connect(WithStyles(Layout)) (created by LayoutWithTheme)
in MuiThemeProvider (created by LayoutWithTheme)
in LayoutWithTheme (created by Route)
in Route (created by CoreAdminRouter)
in Switch (created by CoreAdminRouter)
in div (created by CoreAdminRouter)
in CoreAdminRouter (created by Connect(CoreAdminRouter))
in Connect(CoreAdminRouter) (created by getContext(Connect(CoreAdminRouter)))
in getContext(Connect(CoreAdminRouter)) (created by Route)
in Route (created by CoreAdmin)
in Switch (created by CoreAdmin)
in Router (created by ConnectedRouter)
in ConnectedRouter (created by CoreAdmin)
in TranslationProvider (created by withContext(TranslationProvider))
in withContext(TranslationProvider) (created by Connect(withContext(TranslationProvider)))
in Connect(withContext(TranslationProvider)) (created by CoreAdmin)
in Provider (created by CoreAdmin)
in CoreAdmin (created by withContext(CoreAdmin))
in withContext(CoreAdmin) (at App.js:36)
in App (at index.js:6)
__stack_frame_overlay_proxy_console__ @ index.js:2178
printWarning @ warning.js:33
warning @ warning.js:57
checkPropTypes @ checkPropTypes.js:52
validatePropTypes @ react.development.js:1233
createElementWithValidation @ react.development.js:1321
render @ translate.js:72
finishClassComponent @ react-dom.development.js:8389
updateClassComponent @ react-dom.development.js:8357
beginWork @ react-dom.development.js:8982
performUnitOfWork @ react-dom.development.js:11814
workLoop @ react-dom.development.js:11843
renderRoot @ react-dom.development.js:11874
performWorkOnRoot @ react-dom.development.js:12449
performWork @ react-dom.development.js:12370
performSyncWork @ react-dom.development.js:12347
interactiveUpdates @ react-dom.development.js:12597
interactiveUpdates @ react-dom.development.js:1958
dispatchInteractiveEvent @ react-dom.development.js:4259
index.js:2178 Warning: Failed prop type: The prop resource is marked as required in ReferenceInputController, but its value is undefined.
in ReferenceInputController (created by Connect(ReferenceInputController))
in Connect(ReferenceInputController) (created by TranslatedComponent(Connect(ReferenceInputController)))
in TranslatedComponent(Connect(ReferenceInputController)) (created by ReferenceInput)
in ReferenceInput (created by TranslatedComponent(undefined))
in TranslatedComponent(undefined) (created by ConnectedField)
in ConnectedField (created by Connect(ConnectedField))
in Connect(ConnectedField) (created by Field)
in Field (created by FormField)
in FormField (created by Connect(FormField))
in Connect(FormField) (created by WithFormField)
in WithFormField (at exams.js:122)
in div (created by FormInput)
in FormInput (created by WithStyles(FormInput))
in WithStyles(FormInput) (created by SimpleFormIterator)
in section (created by SimpleFormIterator)
in li (created by SimpleFormIterator)
in Transition (created by CSSTransition)
in CSSTransition (created by SimpleFormIterator)
in div (created by TransitionGroup)
in TransitionGroup (created by SimpleFormIterator)
in ul (created by SimpleFormIterator)
in SimpleFormIterator (created by WithStyles(SimpleFormIterator))
in WithStyles(SimpleFormIterator) (created by TranslatedComponent(WithStyles(SimpleFormIterator)))
in TranslatedComponent(WithStyles(SimpleFormIterator)) (at exams.js:121)
in Unknown (created by ConnectedFieldArray)
in ConnectedFieldArray (created by Connect(ConnectedFieldArray))
in Connect(ConnectedFieldArray) (created by FieldArray)
in FieldArray (created by ArrayInput)
in div (created by FormControl)
in FormControl (created by WithStyles(FormControl))
in WithStyles(FormControl) (created by ArrayInput)
in ArrayInput (at exams.js:120)
in div (created by FormInput)
in FormInput (created by WithStyles(FormInput))
in WithStyles(FormInput) (created by FormTab)
in span (created by FormTab)
in FormTab (at exams.js:119)
in div (created by TabbedForm)
in form (created by TabbedForm)
in TabbedForm (created by WithStyles(TabbedForm))
in WithStyles(TabbedForm) (created by Form(WithStyles(TabbedForm)))
in Form(WithStyles(TabbedForm)) (created by Connect(Form(WithStyles(TabbedForm))))
in Connect(Form(WithStyles(TabbedForm))) (created by ReduxForm)
in ReduxForm (created by TranslatedComponent(undefined))
in TranslatedComponent(undefined) (created by Connect(TranslatedComponent(undefined)))
in Connect(TranslatedComponent(undefined)) (at exams.js:108)
in div (created by Paper)
in Paper (created by WithStyles(Paper))
in WithStyles(Paper) (created by Card)
in Card (created by WithStyles(Card))
in WithStyles(Card) (created by CreateView)
in div (created by CreateView)
in CreateView (created by CreateController)
in CreateController (created by TranslatedComponent(undefined))
in TranslatedComponent(undefined) (created by Connect(TranslatedComponent(undefined)))
in Connect(TranslatedComponent(undefined)) (created by Create)
in Create (at exams.js:107)
in ExamCreate (created by WithPermissions)
in WithPermissions (created by Connect(WithPermissions))
in Connect(WithPermissions) (created by getContext(Connect(WithPermissions)))
in getContext(Connect(WithPermissions)) (created by Route)
in Route (created by Resource)
in Switch (created by Resource)
in Resource (created by Connect(Resource))
in Connect(Resource) (at App.js:70)
in Route (created by RoutesWithLayout)
in Switch (created by RoutesWithLayout)
in RoutesWithLayout (created by Route)
in div (created by Layout)
in main (created by Layout)
in div (created by Layout)
in div (created by Layout)
in Layout (created by WithStyles(Layout))
in WithStyles(Layout) (created by Connect(WithStyles(Layout)))
in Connect(WithStyles(Layout)) (created by LayoutWithTheme)
in MuiThemeProvider (created by LayoutWithTheme)
in LayoutWithTheme (created by Route)
in Route (created by CoreAdminRouter)
in Switch (created by CoreAdminRouter)
in div (created by CoreAdminRouter)
in CoreAdminRouter (created by Connect(CoreAdminRouter))
in Connect(CoreAdminRouter) (created by getContext(Connect(CoreAdminRouter)))
in getContext(Connect(CoreAdminRouter)) (created by Route)
in Route (created by CoreAdmin)
in Switch (created by CoreAdmin)
in Router (created by ConnectedRouter)
in ConnectedRouter (created by CoreAdmin)
in TranslationProvider (created by withContext(TranslationProvider))
in withContext(TranslationProvider) (created by Connect(withContext(TranslationProvider)))
in Connect(withContext(TranslationProvider)) (created by CoreAdmin)
in Provider (created by CoreAdmin)
in CoreAdmin (created by withContext(CoreAdmin))
in withContext(CoreAdmin) (at App.js:36)
in App (at index.js:6)
__stack_frame_overlay_proxy_console__ @ index.js:2178
printWarning @ warning.js:33
warning @ warning.js:57
checkPropTypes @ checkPropTypes.js:52
validatePropTypes @ react.development.js:1233
createElementWithValidation @ react.development.js:1321
render @ connectAdvanced.js:243
finishClassComponent @ react-dom.development.js:8389
updateClassComponent @ react-dom.development.js:8357
beginWork @ react-dom.development.js:8982
performUnitOfWork @ react-dom.development.js:11814
workLoop @ react-dom.development.js:11843
renderRoot @ react-dom.development.js:11874
performWorkOnRoot @ react-dom.development.js:12449
performWork @ react-dom.development.js:12370
performSyncWork @ react-dom.development.js:12347
interactiveUpdates @ react-dom.development.js:12597
interactiveUpdates @ react-dom.development.js:1958
dispatchInteractiveEvent @ react-dom.development.js:4259
index.js:2178 Warning: Failed prop type: The prop resource is marked as required in ReferenceInputView, but its value is undefined.
in ReferenceInputView (created by ReferenceInputController)
in ReferenceInputController (created by Connect(ReferenceInputController))
in Connect(ReferenceInputController) (created by TranslatedComponent(Connect(ReferenceInputController)))
in TranslatedComponent(Connect(ReferenceInputController)) (created by ReferenceInput)
in ReferenceInput (created by TranslatedComponent(undefined))
in TranslatedComponent(undefined) (created by ConnectedField)
in ConnectedField (created by Connect(ConnectedField))
in Connect(ConnectedField) (created by Field)
in Field (created by FormField)
in FormField (created by Connect(FormField))
in Connect(FormField) (created by WithFormField)
in WithFormField (at exams.js:122)
in div (created by FormInput)
in FormInput (created by WithStyles(FormInput))
in WithStyles(FormInput) (created by SimpleFormIterator)
in section (created by SimpleFormIterator)
in li (created by SimpleFormIterator)
in Transition (created by CSSTransition)
in CSSTransition (created by SimpleFormIterator)
in div (created by TransitionGroup)
in TransitionGroup (created by SimpleFormIterator)
in ul (created by SimpleFormIterator)
in SimpleFormIterator (created by WithStyles(SimpleFormIterator))
in WithStyles(SimpleFormIterator) (created by TranslatedComponent(WithStyles(SimpleFormIterator)))
in TranslatedComponent(WithStyles(SimpleFormIterator)) (at exams.js:121)
in Unknown (created by ConnectedFieldArray)
in ConnectedFieldArray (created by Connect(ConnectedFieldArray))
in Connect(ConnectedFieldArray) (created by FieldArray)
in FieldArray (created by ArrayInput)
in div (created by FormControl)
in FormControl (created by WithStyles(FormControl))
in WithStyles(FormControl) (created by ArrayInput)
in ArrayInput (at exams.js:120)
in div (created by FormInput)
in FormInput (created by WithStyles(FormInput))
in WithStyles(FormInput) (created by FormTab)
in span (created by FormTab)
in FormTab (at exams.js:119)
in div (created by TabbedForm)
in form (created by TabbedForm)
in TabbedForm (created by WithStyles(TabbedForm))
in WithStyles(TabbedForm) (created by Form(WithStyles(TabbedForm)))
in Form(WithStyles(TabbedForm)) (created by Connect(Form(WithStyles(TabbedForm))))
in Connect(Form(WithStyles(TabbedForm))) (created by ReduxForm)
in ReduxForm (created by TranslatedComponent(undefined))
in TranslatedComponent(undefined) (created by Connect(TranslatedComponent(undefined)))
in Connect(TranslatedComponent(undefined)) (at exams.js:108)
in div (created by Paper)
in Paper (created by WithStyles(Paper))
in WithStyles(Paper) (created by Card)
in Card (created by WithStyles(Card))
in WithStyles(Card) (created by CreateView)
in div (created by CreateView)
in CreateView (created by CreateController)
in CreateController (created by TranslatedComponent(undefined))
in TranslatedComponent(undefined) (created by Connect(TranslatedComponent(undefined)))
in Connect(TranslatedComponent(undefined)) (created by Create)
in Create (at exams.js:107)
in ExamCreate (created by WithPermissions)
in WithPermissions (created by Connect(WithPermissions))
in Connect(WithPermissions) (created by getContext(Connect(WithPermissions)))
in getContext(Connect(WithPermissions)) (created by Route)
in Route (created by Resource)
in Switch (created by Resource)
in Resource (created by Connect(Resource))
in Connect(Resource) (at App.js:70)
in Route (created by RoutesWithLayout)
in Switch (created by RoutesWithLayout)
in RoutesWithLayout (created by Route)
in div (created by Layout)
in main (created by Layout)
in div (created by Layout)
in div (created by Layout)
in Layout (created by WithStyles(Layout))
in WithStyles(Layout) (created by Connect(WithStyles(Layout)))
in Connect(WithStyles(Layout)) (created by LayoutWithTheme)
in MuiThemeProvider (created by LayoutWithTheme)
in LayoutWithTheme (created by Route)
in Route (created by CoreAdminRouter)
in Switch (created by CoreAdminRouter)
in div (created by CoreAdminRouter)
in CoreAdminRouter (created by Connect(CoreAdminRouter))
in Connect(CoreAdminRouter) (created by getContext(Connect(CoreAdminRouter)))
in getContext(Connect(CoreAdminRouter)) (created by Route)
in Route (created by CoreAdmin)
in Switch (created by CoreAdmin)
in Router (created by ConnectedRouter)
in ConnectedRouter (created by CoreAdmin)
in TranslationProvider (created by withContext(TranslationProvider))
in withContext(TranslationProvider) (created by Connect(withContext(TranslationProvider)))
in Connect(withContext(TranslationProvider)) (created by CoreAdmin)
in Provider (created by CoreAdmin)
in CoreAdmin (created by withContext(CoreAdmin))
in withContext(CoreAdmin) (at App.js:36)
in App (at index.js:6)
__stack_frame_overlay_proxy_console__ @ index.js:2178
printWarning @ warning.js:33
warning @ warning.js:57
checkPropTypes @ checkPropTypes.js:52
validatePropTypes @ react.development.js:1233
createElementWithValidation @ react.development.js:1321
(anonymous) @ ReferenceInput.js:257
render @ ReferenceInputController.js:201
finishClassComponent @ react-dom.development.js:8389
updateClassComponent @ react-dom.development.js:8357
beginWork @ react-dom.development.js:8982
performUnitOfWork @ react-dom.development.js:11814
workLoop @ react-dom.development.js:11843
renderRoot @ react-dom.development.js:11874
performWorkOnRoot @ react-dom.development.js:12449
performWork @ react-dom.development.js:12370
performSyncWork @ react-dom.development.js:12347
interactiveUpdates @ react-dom.development.js:12597
interactiveUpdates @ react-dom.development.js:1958
dispatchInteractiveEvent @ react-dom.development.js:4259
ReferenceInputController.js:170 Uncaught TypeError: Cannot read property 'id' of undefined
at ReferenceInputController.componentWillReceiveProps (ReferenceInputController.js:170)
at callComponentWillReceiveProps (react-dom.development.js:6892)
at updateClassInstance (react-dom.development.js:7132)
at updateClassComponent (react-dom.development.js:8345)
at beginWork (react-dom.development.js:8982)
at performUnitOfWork (react-dom.development.js:11814)
at workLoop (react-dom.development.js:11843)
at HTMLUnknownElement.callCallback (react-dom.development.js:100)
at Object.invokeGuardedCallbackDev (react-dom.development.js:138)
at invokeGuardedCallback (react-dom.development.js:187)
at replayUnitOfWork (react-dom.development.js:11318)
at renderRoot (react-dom.development.js:11885)
at performWorkOnRoot (react-dom.development.js:12449)
at performWork (react-dom.development.js:12370)
at performSyncWork (react-dom.development.js:12347)
at requestWork (react-dom.development.js:12247)
at scheduleWorkImpl (react-dom.development.js:12122)
at scheduleWork (react-dom.development.js:12082)
at Object.enqueueSetState (react-dom.development.js:6644)
at Connect../node_modules/react/cjs/react.development.js.Component.setState (react.development.js:238)
at Connect.onStateChange (connectAdvanced.js:205)
at Object.notify (Subscription.js:26)
at Subscription.notifyNestedSubs (Subscription.js:65)
at Connect.onStateChange (connectAdvanced.js:202)
at Object.notify (Subscription.js:26)
at Subscription.notifyNestedSubs (Subscription.js:65)
at Connect.onStateChange (connectAdvanced.js:202)
at Object.notify (Subscription.js:26)
at Subscription.notifyNestedSubs (Subscription.js:65)
at Connect.onStateChange (connectAdvanced.js:202)
at Object.notify (Subscription.js:26)
at Subscription.notifyNestedSubs (Subscription.js:65)
at Connect.onStateChange (connectAdvanced.js:202)
at Object.notify (Subscription.js:26)
at Subscription.notifyNestedSubs (Subscription.js:65)
at Connect.onStateChange (connectAdvanced.js:202)
at dispatch (createStore.js:173)
at middleware.js:13
at middleware.js:66
at dispatch (applyMiddleware.js:35)
at utils.js:250
at proc.js:489
at exec (scheduler.js:19)
at flush (scheduler.js:60)
at asap (scheduler.js:33)
at runPutEffect (proc.js:486)
at runEffect (proc.js:435)
at next (proc.js:315)
at currCb (proc.js:388)
componentWillReceiveProps @ ReferenceInputController.js:170
callComponentWillReceiveProps @ react-dom.development.js:6892
updateClassInstance @ react-dom.development.js:7132
updateClassComponent @ react-dom.development.js:8345
beginWork @ react-dom.development.js:8982
performUnitOfWork @ react-dom.development.js:11814
workLoop @ react-dom.development.js:11843
callCallback @ react-dom.development.js:100
invokeGuardedCallbackDev @ react-dom.development.js:138
invokeGuardedCallback @ react-dom.development.js:187
replayUnitOfWork @ react-dom.development.js:11318
renderRoot @ react-dom.development.js:11885
performWorkOnRoot @ react-dom.development.js:12449
performWork @ react-dom.development.js:12370
performSyncWork @ react-dom.development.js:12347
requestWork @ react-dom.development.js:12247
scheduleWorkImpl @ react-dom.development.js:12122
scheduleWork @ react-dom.development.js:12082
enqueueSetState @ react-dom.development.js:6644
./node_modules/react/cjs/react.development.js.Component.setState @ react.development.js:238
onStateChange @ connectAdvanced.js:205
notify @ Subscription.js:26
notifyNestedSubs @ Subscription.js:65
onStateChange @ connectAdvanced.js:202
notify @ Subscription.js:26
notifyNestedSubs @ Subscription.js:65
onStateChange @ connectAdvanced.js:202
notify @ Subscription.js:26
notifyNestedSubs @ Subscription.js:65
onStateChange @ connectAdvanced.js:202
notify @ Subscription.js:26
notifyNestedSubs @ Subscription.js:65
onStateChange @ connectAdvanced.js:202
notify @ Subscription.js:26
notifyNestedSubs @ Subscription.js:65
onStateChange @ connectAdvanced.js:202
dispatch @ createStore.js:173
(anonymous) @ middleware.js:13
(anonymous) @ middleware.js:66
dispatch @ applyMiddleware.js:35
(anonymous) @ utils.js:250
(anonymous) @ proc.js:489
exec @ scheduler.js:19
flush @ scheduler.js:60
asap @ scheduler.js:33
runPutEffect @ proc.js:486
runEffect @ proc.js:435
next @ proc.js:315
currCb @ proc.js:388
Promise.then (async)
resolvePromise @ proc.js:450
runCallEffect @ proc.js:517
runEffect @ proc.js:435
next @ proc.js:315
currCb @ proc.js:388
checkEffectEnd @ proc.js:612
chCbAtKey @ proc.js:627
currCb @ proc.js:388
(anonymous) @ proc.js:499
exec @ scheduler.js:19
flush @ scheduler.js:60
asap @ scheduler.js:33
(anonymous) @ channel.js:185
emit @ channel.js:26
(anonymous) @ middleware.js:67
(anonymous) @ bindActionCreators.js:3
fetchOptions @ ReferenceInputController.js:266
fetchReferenceAndOptions @ ReferenceInputController.js:180
componentDidMount @ ReferenceInputController.js:165
commitLifeCycles @ react-dom.development.js:9784
commitAllLifeCycles @ react-dom.development.js:11455
callCallback @ react-dom.development.js:100
invokeGuardedCallbackDev @ react-dom.development.js:138
invokeGuardedCallback @ react-dom.development.js:187
commitRoot @ react-dom.development.js:11594
completeRoot @ react-dom.development.js:12502
performWorkOnRoot @ react-dom.development.js:12452
performWork @ react-dom.development.js:12370
performSyncWork @ react-dom.development.js:12347
interactiveUpdates @ react-dom.development.js:12597
interactiveUpdates @ react-dom.development.js:1958
dispatchInteractiveEvent @ react-dom.development.js:4259
index.js:2178 The above error occurred in the
in ReferenceInputController (created by Connect(ReferenceInputController))
in Connect(ReferenceInputController) (created by TranslatedComponent(Connect(ReferenceInputController)))
in TranslatedComponent(Connect(ReferenceInputController)) (created by ReferenceInput)
in ReferenceInput (created by TranslatedComponent(undefined))
in TranslatedComponent(undefined) (created by ConnectedField)
in ConnectedField (created by Connect(ConnectedField))
in Connect(ConnectedField) (created by Field)
in Field (created by FormField)
in FormField (created by Connect(FormField))
in Connect(FormField) (created by WithFormField)
in WithFormField (at exams.js:122)
in div (created by FormInput)
in FormInput (created by WithStyles(FormInput))
in WithStyles(FormInput) (created by SimpleFormIterator)
in section (created by SimpleFormIterator)
in li (created by SimpleFormIterator)
in Transition (created by CSSTransition)
in CSSTransition (created by SimpleFormIterator)
in div (created by TransitionGroup)
in TransitionGroup (created by SimpleFormIterator)
in ul (created by SimpleFormIterator)
in SimpleFormIterator (created by WithStyles(SimpleFormIterator))
in WithStyles(SimpleFormIterator) (created by TranslatedComponent(WithStyles(SimpleFormIterator)))
in TranslatedComponent(WithStyles(SimpleFormIterator)) (at exams.js:121)
in Unknown (created by ConnectedFieldArray)
in ConnectedFieldArray (created by Connect(ConnectedFieldArray))
in Connect(ConnectedFieldArray) (created by FieldArray)
in FieldArray (created by ArrayInput)
in div (created by FormControl)
in FormControl (created by WithStyles(FormControl))
in WithStyles(FormControl) (created by ArrayInput)
in ArrayInput (at exams.js:120)
in div (created by FormInput)
in FormInput (created by WithStyles(FormInput))
in WithStyles(FormInput) (created by FormTab)
in span (created by FormTab)
in FormTab (at exams.js:119)
in div (created by TabbedForm)
in form (created by TabbedForm)
in TabbedForm (created by WithStyles(TabbedForm))
in WithStyles(TabbedForm) (created by Form(WithStyles(TabbedForm)))
in Form(WithStyles(TabbedForm)) (created by Connect(Form(WithStyles(TabbedForm))))
in Connect(Form(WithStyles(TabbedForm))) (created by ReduxForm)
in ReduxForm (created by TranslatedComponent(undefined))
in TranslatedComponent(undefined) (created by Connect(TranslatedComponent(undefined)))
in Connect(TranslatedComponent(undefined)) (at exams.js:108)
in div (created by Paper)
in Paper (created by WithStyles(Paper))
in WithStyles(Paper) (created by Card)
in Card (created by WithStyles(Card))
in WithStyles(Card) (created by CreateView)
in div (created by CreateView)
in CreateView (created by CreateController)
in CreateController (created by TranslatedComponent(undefined))
in TranslatedComponent(undefined) (created by Connect(TranslatedComponent(undefined)))
in Connect(TranslatedComponent(undefined)) (created by Create)
in Create (at exams.js:107)
in ExamCreate (created by WithPermissions)
in WithPermissions (created by Connect(WithPermissions))
in Connect(WithPermissions) (created by getContext(Connect(WithPermissions)))
in getContext(Connect(WithPermissions)) (created by Route)
in Route (created by Resource)
in Switch (created by Resource)
in Resource (created by Connect(Resource))
in Connect(Resource) (at App.js:70)
in Route (created by RoutesWithLayout)
in Switch (created by RoutesWithLayout)
in RoutesWithLayout (created by Route)
in div (created by Layout)
in main (created by Layout)
in div (created by Layout)
in div (created by Layout)
in Layout (created by WithStyles(Layout))
in WithStyles(Layout) (created by Connect(WithStyles(Layout)))
in Connect(WithStyles(Layout)) (created by LayoutWithTheme)
in MuiThemeProvider (created by LayoutWithTheme)
in LayoutWithTheme (created by Route)
in Route (created by CoreAdminRouter)
in Switch (created by CoreAdminRouter)
in div (created by CoreAdminRouter)
in CoreAdminRouter (created by Connect(CoreAdminRouter))
in Connect(CoreAdminRouter) (created by getContext(Connect(CoreAdminRouter)))
in getContext(Connect(CoreAdminRouter)) (created by Route)
in Route (created by CoreAdmin)
in Switch (created by CoreAdmin)
in Router (created by ConnectedRouter)
in ConnectedRouter (created by CoreAdmin)
in TranslationProvider (created by withContext(TranslationProvider))
in withContext(TranslationProvider) (created by Connect(withContext(TranslationProvider)))
in Connect(withContext(TranslationProvider)) (created by CoreAdmin)
in Provider (created by CoreAdmin)
in CoreAdmin (created by withContext(CoreAdmin))
in withContext(CoreAdmin) (at App.js:36)
in App (at index.js:6)
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
__stack_frame_overlay_proxy_console__ @ index.js:2178
logCapturedError @ react-dom.development.js:9643
logError @ react-dom.development.js:9682
commitErrorLogging @ react-dom.development.js:9895
commitAllLifeCycles @ react-dom.development.js:11459
callCallback @ react-dom.development.js:100
invokeGuardedCallbackDev @ react-dom.development.js:138
invokeGuardedCallback @ react-dom.development.js:187
commitRoot @ react-dom.development.js:11594
completeRoot @ react-dom.development.js:12502
performWorkOnRoot @ react-dom.development.js:12452
performWork @ react-dom.development.js:12370
performSyncWork @ react-dom.development.js:12347
requestWork @ react-dom.development.js:12247
scheduleWorkImpl @ react-dom.development.js:12122
scheduleWork @ react-dom.development.js:12082
enqueueSetState @ react-dom.development.js:6644
./node_modules/react/cjs/react.development.js.Component.setState @ react.development.js:238
onStateChange @ connectAdvanced.js:205
notify @ Subscription.js:26
notifyNestedSubs @ Subscription.js:65
onStateChange @ connectAdvanced.js:202
notify @ Subscription.js:26
notifyNestedSubs @ Subscription.js:65
onStateChange @ connectAdvanced.js:202
notify @ Subscription.js:26
notifyNestedSubs @ Subscription.js:65
onStateChange @ connectAdvanced.js:202
notify @ Subscription.js:26
notifyNestedSubs @ Subscription.js:65
onStateChange @ connectAdvanced.js:202
notify @ Subscription.js:26
notifyNestedSubs @ Subscription.js:65
onStateChange @ connectAdvanced.js:202
dispatch @ createStore.js:173
(anonymous) @ middleware.js:13
(anonymous) @ middleware.js:66
dispatch @ applyMiddleware.js:35
(anonymous) @ utils.js:250
(anonymous) @ proc.js:489
exec @ scheduler.js:19
flush @ scheduler.js:60
asap @ scheduler.js:33
runPutEffect @ proc.js:486
runEffect @ proc.js:435
next @ proc.js:315
currCb @ proc.js:388
Promise.then (async)
resolvePromise @ proc.js:450
runCallEffect @ proc.js:517
runEffect @ proc.js:435
next @ proc.js:315
currCb @ proc.js:388
checkEffectEnd @ proc.js:612
chCbAtKey @ proc.js:627
currCb @ proc.js:388
(anonymous) @ proc.js:499
exec @ scheduler.js:19
flush @ scheduler.js:60
asap @ scheduler.js:33
(anonymous) @ channel.js:185
emit @ channel.js:26
(anonymous) @ middleware.js:67
(anonymous) @ bindActionCreators.js:3
fetchOptions @ ReferenceInputController.js:266
fetchReferenceAndOptions @ ReferenceInputController.js:180
componentDidMount @ ReferenceInputController.js:165
commitLifeCycles @ react-dom.development.js:9784
commitAllLifeCycles @ react-dom.development.js:11455
callCallback @ react-dom.development.js:100
invokeGuardedCallbackDev @ react-dom.development.js:138
invokeGuardedCallback @ react-dom.development.js:187
commitRoot @ react-dom.development.js:11594
completeRoot @ react-dom.development.js:12502
performWorkOnRoot @ react-dom.development.js:12452
performWork @ react-dom.development.js:12370
performSyncWork @ react-dom.development.js:12347
interactiveUpdates @ react-dom.development.js:12597
interactiveUpdates @ react-dom.development.js:1958
dispatchInteractiveEvent @ react-dom.development.js:4259
index.js:2178 uncaught at handleFetch TypeError: Cannot read property 'id' of undefined
at ReferenceInputController.componentWillReceiveProps (http://localhost:3000/static/js/bundle.js:93640:35)
at callComponentWillReceiveProps (http://localhost:3000/static/js/bundle.js:184675:16)
at updateClassInstance (http://localhost:3000/static/js/bundle.js:184915:9)
at updateClassComponent (http://localhost:3000/static/js/bundle.js:186128:22)
at beginWork (http://localhost:3000/static/js/bundle.js:186765:16)
at performUnitOfWork (http://localhost:3000/static/js/bundle.js:189597:16)
at workLoop (http://localhost:3000/static/js/bundle.js:189626:26)
at renderRoot (http://localhost:3000/static/js/bundle.js:189657:9)
at performWorkOnRoot (http://localhost:3000/static/js/bundle.js:190232:24)
at performWork (http://localhost:3000/static/js/bundle.js:190153:9)
at performSyncWork (http://localhost:3000/static/js/bundle.js:190130:5)
at requestWork (http://localhost:3000/static/js/bundle.js:190030:7)
at scheduleWorkImpl (http://localhost:3000/static/js/bundle.js:189905:13)
at scheduleWork (http://localhost:3000/static/js/bundle.js:189865:12)
at Object.enqueueSetState (http://localhost:3000/static/js/bundle.js:184427:7)
at Connect../node_modules/react/cjs/react.development.js.Component.setState (http://localhost:3000/static/js/bundle.js:213780:16)
at Connect.onStateChange (http://localhost:3000/static/js/bundle.js:206057:16)
at Object.notify (http://localhost:3000/static/js/bundle.js:206716:21)
at Subscription.notifyNestedSubs (http://localhost:3000/static/js/bundle.js:206755:20)
at Connect.onStateChange (http://localhost:3000/static/js/bundle.js:206054:16)
at Object.notify (http://localhost:3000/static/js/bundle.js:206716:21)
at Subscription.notifyNestedSubs (http://localhost:3000/static/js/bundle.js:206755:20)
at Connect.onStateChange (http://localhost:3000/static/js/bundle.js:206054:16)
at Object.notify (http://localhost:3000/static/js/bundle.js:206716:21)
at Subscription.notifyNestedSubs (http://localhost:3000/static/js/bundle.js:206755:20)
at Connect.onStateChange (http://localhost:3000/static/js/bundle.js:206054:16)
at Object.notify (http://localhost:3000/static/js/bundle.js:206716:21)
at Subscription.notifyNestedSubs (http://localhost:3000/static/js/bundle.js:206755:20)
at Connect.onStateChange (http://localhost:3000/static/js/bundle.js:206054:16)
at Object.notify (http://localhost:3000/static/js/bundle.js:206716:21)
at Subscription.notifyNestedSubs (http://localhost:3000/static/js/bundle.js:206755:20)
at Connect.onStateChange (http://localhost:3000/static/js/bundle.js:206054:16)
at dispatch (http://localhost:3000/static/js/bundle.js:215792:7)
at http://localhost:3000/static/js/bundle.js:207964:18
at http://localhost:3000/static/js/bundle.js:116539:22
at dispatch (http://localhost:3000/static/js/bundle.js:215339:18)
at http://localhost:3000/static/js/bundle.js:118043:12
at http://localhost:3000/static/js/bundle.js:117066:52
at exec (http://localhost:3000/static/js/bundle.js:117706:5)
at flush (http://localhost:3000/static/js/bundle.js:117747:5)
at asap (http://localhost:3000/static/js/bundle.js:117720:5)
at runPutEffect (http://localhost:3000/static/js/bundle.js:117063:69)
at runEffect (http://localhost:3000/static/js/bundle.js:117012:307)
at next (http://localhost:3000/static/js/bundle.js:116892:9)
at currCb (http://localhost:3000/static/js/bundle.js:116965:7)
Environment
I think #1792 already fixes this issue. If you cannot test with master (I know it's a bit hard), we'll wait until the next release to see if it's fixed.
Sure, I will give a try. 馃憤
Version 2.0.0-RC3 has just been published, can you upgrade and report here if it fixes the problem?
Yes, it resolves the problem.