I got this error when using kibana 5.4
TypeError: "field" is a required parameter
    at FieldAggParamFactory.FieldAggParam.write (http://localhost:5601/bundles/kibana.bundle.js?v=8467:81:11707)
    at http://localhost:5601/bundles/kibana.bundle.js?v=8467:81:8982
    at AggParams.forEach (native)
    at AggParamsFactory.AggParams.write (http://localhost:5601/bundles/kibana.bundle.js?v=8467:81:8940)
    at AggConfigFactory.AggConfig.write (http://localhost:5601/bundles/kibana.bundle.js?v=8467:82:26986)
    at AggConfigFactory.AggConfig.toDsl (http://localhost:5601/bundles/kibana.bundle.js?v=8467:82:27743)
    at http://localhost:5601/bundles/kibana.bundle.js?v=8467:98:6303
    at Array.forEach (native)
    at AggConfigsFactory.AggConfigs.toDsl (http://localhost:5601/bundles/kibana.bundle.js?v=8467:98:6086)
    at http://localhost:5601/bundles/kibana.bundle.js?v=8467:79:1739
Does anyone know what does this mean?