-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Platform X-Pack plugins can't import non-types from client-side/public Core. #58327
Comments
Pinging @elastic/kibana-operations (Team:Operations) |
to note: it's not related to // src/core/public/index.ts
export const hello = 'world';
// x-pack
import { hello } from 'src/core/public'; |
Hey @elastic/kibana-operations , Did you have a chance to take a look at this issue? We had to resort to workarounds for now (using hardcoded values instead of enum members provided by the core). |
This is also affecting the SIEM team's NP migration. |
Sorry, but the build system for Kibana platform plugins doesn't support all of the crazy things the legacy optimizer does, including aliases like |
We can go this way, although it will require public API refactoring later. As I can see |
If those modules wanted to write a global and then the |
@rylnd How pressing of a blocker is this for SIEM right now? From my understanding, the SIEM client-side migration is still blocked by the Maps embeddable as well. Would it be acceptable if this is solved around the same time as that during 7.8? |
@joshdover yep, the Maps embeddable is the bigger issue as we lose UI functionality. This one can happen any time before then 👍 |
We're not sure yet where the underlying problem is and whether it's optimizer related, but here is what we see with these reduced steps-to-reproduce:
enum
from the core using'src/core/public'
alias:Optimizer fails with:
enum
from the core using relative path:Optimizer fails with:
Type check scripts seems to be OK with either of the approaches above. When we import just
type
's,interface
's etc. everything works as expected./cc @restrry
The text was updated successfully, but these errors were encountered: