I'm trying to explore what "kibana-react" does. I went through the github code (https://github.com/elastic/kibana/tree/master/src/plugins/kibana_react) and tried to follow the instructions from the readme and apply them to my plugin. When I try to use my plugin, I get the following error:
This is how i import 'kibana-react' (I do it exactly as shown in the github link I shared above):
Does your app import its own version of react? Might be best to just use the version that ships with Kibana. Here is an example plugin that sets up a react router that you can follow
I'm using the version that ships with Kibana. I don't need react router, I just need to be able to access KibanaContextProvider. In the github link I shared, the examples import KibanaContextProvider from kibana-react using import { KibanaContextProvider } from 'kibana-react'. However when I try the same thing in my plugin, I get the error cant resolve kibana-react.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.