Yes, I'm using toMountPoint from import { toMountPoint } from '../../../../src/plugins/kibana_react/public'; and using Storage from import { Storage } from '../../../../src/plugins/kibana_utils/public';.
For example,
import { Storage } from '../../../../src/plugins/kibana_utils/public';
const local = new Storage(window.sessionStorage);
console.log(local);
Are the files where you use it part of the main entrypoint? What I mean is there a series of imports connecting these files to the main public/index.ts file of your plugin?
Loading it in application.ts should be fine. I wrote
What I mean is there a series of imports connecting these files to the main public/index.ts file of your plugin?
In your plugin index.ts imports plugin.ts which imports application.ts - that's what I was talking about. Is there a series of imports connecting your usage of kibana utils to index.ts. As that's the case, the problem has to be somewhere else, I'm looking into the issue.
Thanks, that's helpful. I reached out to the team managing the build process to confirm, but it looks like for 3rd party plugins you simply can't use the requiredBundles setting - simply omit it and the build should work.
This is a special setting for sharing bundles for the built-in plugins and it's not relevant for custom plugins.
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.