Kibana version: 8.0 master
Elasticsearch version: 8.0 master
Server OS version: MacOSX
Browser version: Chrome latest
Browser OS version: NA
Original install method (e.g. download page, yum, from source, etc.): I encountered this error in scripted field- when I tried to switch between the Type from number to any of the other fields like string, date, or boolean the switch doesn't happen and I see the console error .
get_default_format.js:35 Uncaught TypeError: Class constructor DecoratedFieldFormat cannot be invoked without 'new'
at new DefaultFormat (get_default_format.js:35)
at FieldEditor.onTypeChange (field_editor.js:115)
at onChange (field_editor.js:567)
at HTMLUnknownElement.callCallback (react-dom.development.js:336)
at Object.invokeGuardedCallbackDev (react-dom.development.js:385)
at invokeGuardedCallback (react-dom.development.js:440)
at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:454)
at executeDispatch (react-dom.development.js:584)
at executeDispatchesInOrder (react-dom.development.js:609)
at executeDispatchesAndRelease (react-dom.development.js:713)

This is happening on master OSS as well.