Kibana plugin 'yarn dev --watch' fails in Kibana 8.8.0

We have recently upgraded from Kibana 8.6.2 to 8.8.0. We are having issues launching the dev environment which now requires the use of yarn dev --watch as per doc

kbujold@yow-kbujold-lx-vm2:wind$ yarn dev --watch
yarn run v1.22.19
$ yarn plugin-helpers dev --watch
$ node ../../scripts/plugin_helpers dev --watch
 info deleting the target folder
 info running @kbn/optimizer in watch mode (use CTRL+C to quit)
 │ERROR Using kebab-case for css properties in objects is not supported. Did you mean paddingInline?
 │ERROR Optimizer failure: Failed to compile with webpack:
 │      Hash: c377680feb9c0466644f
 │      Version: webpack 4.46.0
 │      Time: 4795ms
 │      Built at: 2023-05-30 12:37:08 p.m.
 │                                     Asset      Size  Chunks         Chunk Names
 │      b6943c77b7fdef864cf90d27187aa0bb.svg   210 KiB
 │                           wind.chunk.0.js  1.56 MiB       0
 │                       wind.chunk.0.js.map  1.38 MiB       0  [dev]
 │                            wind.plugin.js  64.7 KiB    wind         wind
 │                        wind.plugin.js.map  45.8 KiB    wind  [dev]  wind
 │      Entrypoint wind = wind.plugin.js wind.plugin.js.map
 │      [../../node_modules/css-loader/dist/cjs.js?!../../node_modules/postcss-loader/dist/cjs.js?!../../node_modules/sass-loader/dist/cjs.js?!./public/index.scss?v8dark] /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-0-1!/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/postcss-loader/dist/cjs.js??ref--6-oneOf-0-2!/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-0-3!./public/index.scss?v8dark 8.24 KiB {wind} [built]
 │      [../../node_modules/css-loader/dist/cjs.js?!../../node_modules/postcss-loader/dist/cjs.js?!../../node_modules/sass-loader/dist/cjs.js?!./public/index.scss?v8light] /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/postcss-loader/dist/cjs.js??ref--6-oneOf-1-2!/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!./public/index.scss?v8light 8.24 KiB {wind} [built]
 │      [../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js] /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js 6.67 KiB {wind} [built]
 │      [../../node_modules/val-loader/dist/cjs.js?key=wind!../../packages/kbn-ui-shared-deps-npm/src/public_path_module_creator.js] /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/val-loader/dist/cjs.js?key=wind!/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/packages/kbn-ui-shared-deps-npm/src/public_path_module_creator.js 58 bytes {wind} [not cacheable] [built]
 │      [../../packages/kbn-optimizer/src/worker/entry_point_creator.ts] /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/packages/kbn-optimizer/src/worker/entry_point_creator.ts 367 bytes {wind} [not cacheable] [built]
 │      [./common/constants/index.ts] 3.63 KiB {wind} [built]
 │      [./public/application.tsx] 586 bytes {0} [built]
 │      [./public/assets/WR_Favicon.svg] 82 bytes {wind} [built]
 │      [./public/components/app.tsx] 2.38 KiB {0} [built]
 │      [./public/index.scss] 159 bytes {wind} [built]
 │      [./public/index.scss?v8dark] 688 bytes {wind} [built]
 │      [./public/index.scss?v8light] 689 bytes {wind} [built]
 │      [./public/index.ts] 223 bytes {wind} [built]
 │      [./public/plugin.ts] 1.16 KiB {wind} [built]
 │      [@kbn/i18n] external "__kbnSharedDeps__.KbnI18n" 42 bytes {wind} [built]
 │          + 205 hidden modules
 │
 │      ERROR in /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/packages/kbn-optimizer/src/worker/entry_point_creator.ts
 │      Module not found: Error: Can't resolve '../../../../plugins/wind/common' in '/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/packages/kbn-optimizer/src/worker'
 │       @ /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/packages/kbn-optimizer/src/worker/entry_point_creator.ts 2:65-115


Also building fails with the same error

node ../../scripts/plugin_helpers build --kibana-version 8.8.0

It appears the issue was with 'common/index.ts' missing in the plugin directory. This file must exist and can be empty.

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