# Kibanaプラグインで FieldFormat is not a constructor エラー

**URL:** <https://discuss.elastic.co/t/kibana-fieldformat-is-not-a-constructor/105827>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [October 31, 2017, 2:55am UTC](https://discuss.elastic.co/t/kibana-fieldformat-is-not-a-constructor/105827 "2017-10-31T02:55:04Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)\
**Post date:** [November 9, 2017, 4:54am UTC](https://discuss.elastic.co/t/kibana-fieldformat-is-not-a-constructor/105827/7 "2017-11-09T04:54:08Z")

</div>

> [@Can't refresh an index pattern through my plugin](https://discuss.elastic.co/t/cant-refresh-an-index-pattern-through-my-plugin/65634):
>
> Hi, I am developping a kibana plugin which, at some point, needs to refresh the fields of a specific index pattern. I'm using the following code: import uiModules from 'ui/modules'; import 'ui/courier'; var app = uiModules.get('app/myApp', ['kibana/courier']); app.controller('myCtrl', function($scope, courier) { let indexPattern = courier.indexPatterns.get('myIndexPattern-\*'); indexPattern.refreshFields(); }); But, I'm getting the following error: angular.js:12477 TypeError: FieldF…

この辺りでしょうか？

---

_[View the full topic](https://discuss.elastic.co/t/kibana-fieldformat-is-not-a-constructor/105827)._
