ERROR in ./optimize/bundles/guard-idcs.entry.js

I just generated a new plugin using template-kibana-plugin/ against kibana 6.2, and then saw the following error when accessing http://IP:5601.

optmzr    log   [09:33:51.859] [fatal][optimize] Optimization failed in 96.48 secondsError: Optimizations failure.
   4357 modules

    ERROR in ./optimize/bundles/guard-idcs.entry.js
    Module not found: Error: Can't resolve 'plugins/guard_idcs/hack' in '/scratch/benjamin/js/kibana_plugins/kibana/optimize/bu                                                                                ndles'

    ERROR in ./optimize/bundles/status_page.entry.js
    Module not found: Error: Can't resolve 'plugins/guard_idcs/hack' in '/scratch/benjamin/js/kibana_plugins/kibana/optimize/bu                                                                                ndles'

    ERROR in ./optimize/bundles/stateSessionStorageRedirect.entry.js
    Module not found: Error: Can't resolve 'plugins/guard_idcs/hack' in '/scratch/benjamin/js/kibana_plugins/kibana/optimize/bu                                                                                ndles'

    ERROR in ./optimize/bundles/sense-tests.entry.js
    Module not found: Error: Can't resolve 'plugins/guard_idcs/hack' in '/scratch/benjamin/js/kibana_plugins/kibana/optimize/bu                                                                                ndles'

    ERROR in ./optimize/bundles/timelion.entry.js
    Module not found: Error: Can't resolve 'plugins/guard_idcs/hack' in '/scratch/benjamin/js/kibana_plugins/kibana/optimize/bu                                                                                ndles'

    ERROR in ./optimize/bundles/kibana.entry.js
    Module not found: Error: Can't resolve 'plugins/guard_idcs/hack' in '/scratch/benjamin/js/kibana_plugins/kibana/optimize/bu                                                                                ndles'

optmzr    log   [09:33:58.366] [fatal][optimize] Optimization failed in 4.04 secondsError: Optimizations failure.
   4238 modules

    ERROR in ./optimize/bundles/guard-idcs.entry.js
    Module not found: Error: Can't resolve 'plugins/guard_idcs/hack' in '/scratch/benjamin/js/kibana_plugins/kibana/optimize/bu                                                                                ndles'

    ERROR in ./optimize/bundles/status_page.entry.js
    Module not found: Error: Can't resolve 'plugins/guard_idcs/hack' in '/scratch/benjamin/js/kibana_plugins/kibana/optimize/bu                                                                                ndles'

    ERROR in ./optimize/bundles/stateSessionStorageRedirect.entry.js
    Module not found: Error: Can't resolve 'plugins/guard_idcs/hack' in '/scratch/benjamin/js/kibana_plugins/kibana/optimize/bu                                                                                ndles'

    ERROR in ./optimize/bundles/kibana.entry.js
    Module not found: Error: Can't resolve 'plugins/guard_idcs/hack' in '/scratch/benjamin/js/kibana_plugins/kibana/optimize/bu                                                                                ndles'

    ERROR in ./optimize/bundles/sense-tests.entry.js
    Module not found: Error: Can't resolve 'plugins/guard_idcs/hack' in '/scratch/benjamin/js/kibana_plugins/kibana/optimize/bu                                                                                ndles'

    ERROR in ./optimize/bundles/timelion.entry.js
    Module not found: Error: Can't resolve 'plugins/guard_idcs/hack' in '/scratch/benjamin/js/kibana_plugins/kibana/optimize/bu                                                                                ndles'

I just figure out the reason. It's because the template generator convert the name from "guard_idcs" to "guard-idcs".

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.