Kibana: Babel error reported in production due to Canvas presentation template size

Created on 23 Jul 2020  路  8Comments  路  Source: elastic/kibana

We either need to remove our use of babel/register, or come up with a different solution for the Canvas template, assuming it's required.

[BABEL] Note: The code generator has deoptimised the styling of /usr/share/kibana/x-pack/plugins/canvas/server/templates/pitch_presentation.js as it exceeds the max of 500KB.
Canvas Operations Presentation bug low v8.0.0

Most helpful comment

@spalger Hi! when it will happen? In docker hub there is only 7.9.3 and I go this issue

All 8 comments

Pinging @elastic/kibana-canvas (Team:Canvas)

Pinging @elastic/kibana-operations (Team:Operations)

@crob611 Can you weigh in on this, particularly with our plans to move templates to Saved Object?

@tylersmalley What would be the best option in the short term?

thoughts on silencing? minimal changeset for freeze, haven't tested tho

{
    "env": {
      "production" : {
        "compact": false
      }
    }
}

https://babeljs.io/docs/en/options for ref

I also met this error when kibana start although I have config "xpack.canvas.enabled: false" in kibana.yml

This is fixed in 7.10 by https://github.com/elastic/kibana/pull/79379. @like-inspur unfortunately we still load the code for the canvas plugin so that we can detect it's config schema, even though you disabled canvas we still were passing it through babel in production, but not anymore once 7.10 is released!

@spalger Hi! when it will happen? In docker hub there is only 7.9.3 and I go this issue

@spalger Hi! when it will happen? In docker hub there is only 7.9.3 and I go this issue

I am having the same error in the same version as well

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bhavyarm picture bhavyarm  路  3Comments

stacey-gammon picture stacey-gammon  路  3Comments

MaartenUreel picture MaartenUreel  路  3Comments

stacey-gammon picture stacey-gammon  路  3Comments

spalger picture spalger  路  3Comments