Skip to content

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

@rashmivkulkarni

Description

@rashmivkulkarni

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.

Metadata

Metadata

Assignees

Labels

Team:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experiencev8.0.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions