Objects are not valid as a React child (found: ReferenceError: SP is not defined)
samir-farid opened this issue · 0 comments
When using the defaultOptions, everything works fine and the component gets rendered with values, but when I remove the defaultOptions and supply a termsetguid and termsetname to retrieve terms from Office 365, the component is rendered but there are no values in the dropdown and the console logs the following error:
Error: Minified React error #31; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=31&args[]=ReferenceError%3A%20SP%20is%20not%20defined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
On the facebook site it says the error is:
Objects are not valid as a React child (found: ReferenceError: SP is not defined)