Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In scripted fields, unable to switch the Type - getting a console error which says - Class constructor DecoratedFieldFormat cannot be invoked without 'new' #58763

Closed
rashmivkulkarni opened this issue Feb 27, 2020 · 4 comments · Fixed by #59285
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0

Comments

@rashmivkulkarni
Copy link
Contributor

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)

Screen Shot 2020-02-27 at 9 59 04 AM

This is happening on master OSS as well.

@rashmivkulkarni rashmivkulkarni added bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 Team:AppArch labels Feb 27, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@LeeDr
Copy link

LeeDr commented Feb 27, 2020

I'm also seeing it. I'm on master OSS. Not sure why it appears to be passing on Jenkins

@timroes
Copy link
Contributor

timroes commented Feb 27, 2020

@mattkime could that be related to any of the recent field formatter changes?

@alexh97 alexh97 assigned alexwizp and unassigned alexwizp Mar 3, 2020
@alexwizp alexwizp self-assigned this Mar 3, 2020
alexwizp added a commit to alexwizp/kibana that referenced this issue Mar 4, 2020
…rror which says - Class constructor DecoratedFieldFormat cannot be invoked without 'new'

Closes: elastic#58763
alexwizp added a commit that referenced this issue Mar 9, 2020
…rror which says - Class constructor DecoratedFieldFormat cannot be invoked without 'new' (#59285)

Closes: #58763

Co-authored-by: Elastic Machine <[email protected]>
alexwizp added a commit to alexwizp/kibana that referenced this issue Mar 9, 2020
…rror which says - Class constructor DecoratedFieldFormat cannot be invoked without 'new' (elastic#59285)

Closes: elastic#58763

Co-authored-by: Elastic Machine <[email protected]>
alexwizp added a commit that referenced this issue Mar 9, 2020
…rror which says - Class constructor DecoratedFieldFormat cannot be invoked without 'new' (#59285) (#59640)

Closes: #58763

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0
Projects
None yet
5 participants