Skip to content
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

Module not found: Error: Can't resolve '../../../../plugins/kibana-floating-toolbar/common' #1

Open
binarywang opened this issue Oct 11, 2023 · 0 comments

Comments

@binarywang
Copy link

binarywang commented Oct 11, 2023

hi ,there, i tried to build the plugin, but got errors like below:

info deleting the build and target directories
 info run bazel and build required artifacts for the optimizer
 succ bazel run successfully and artifacts were created
 info running @kbn/optimizer
 │ERROR Optimizer failure: Failed to compile with webpack:
 │      Hash: 73b1ea1084e3e32c5933
 │      Version: webpack 4.46.0
 │      Time: 2119ms
 │      Built at: 10/12/2023 2:07:30 AM
 │                                Asset      Size  Chunks  Chunk Names
 │      kibanaFloatingToolbar.plugin.js  7.53 KiB       0  kibanaFloatingToolbar
 │      Entrypoint kibanaFloatingToolbar = kibanaFloatingToolbar.plugin.js
 │       [0] external "__kbnSharedDeps__.React" 42 bytes {0} [built]
 │       [1] external "__kbnSharedDeps__.EmotionReact" 42 bytes {0} [built]
 │       [2] external "__kbnSharedDeps__.ReactDom" 42 bytes {0} [built]
 │       [3] /home/kibana/kibana/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js 6.67 KiB {0} [built]
 │       [4] /home/kibana/kibana/node_modules/css-loader/dist/runtime/api.js 2.46 KiB {0} [built]
 │       [5] external "__kbnSharedDeps__.ElasticEui" 42 bytes {0} [built]
 │       [6] /home/kibana/kibana/packages/kbn-optimizer/src/worker/entry_point_creator.ts 456 bytes {0} [not cacheable] [built]
 │       [7] /home/kibana/kibana/node_modules/val-loader/dist/cjs.js?key=kibanaFloatingToolbar!/home/kibana/kibana/packages/kbn-ui-shared-deps-npm/src/public_path_module_creator.js 75 bytes {0} [not cacheable] [built]
 │       [8] ./public/index.scss 159 bytes {0} [built]
 │       [9] ./public/index.scss?v8dark 688 bytes {0} [built]
 │      [10] /home/kibana/kibana/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-0-1!/home/kibana/kibana/node_modules/postcss-loader/dist/cjs.js??ref--6-oneOf-0-2!/home/kibana/kibana/node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-0-3!./public/index.scss?v8dark 753 bytes {0} [built]
 │      [11] ./public/index.scss?v8light 689 bytes {0} [built]
 │      [12] /home/kibana/kibana/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!/home/kibana/kibana/node_modules/postcss-loader/dist/cjs.js??ref--6-oneOf-1-2!/home/kibana/kibana/node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!./public/index.scss?v8light 753 bytes {0} [built]
 │      [13] ./public/index.ts + 3 modules 2.16 KiB {0} [built]
 │           | ./public/index.ts 351 bytes [built]
 │           | ./public/plugin.tsx 1.14 KiB [built]
 │           | ./public/types.ts 10 bytes [built]
 │           | ./public/topnav_toggle_btn.tsx 654 bytes [built]
 │
 │      WARNING in ./public/index.ts 9:0-93
 │      "export 'KibanaFloatingToolbarPluginSetup' was not found in './types'
 │       @ /home/kibana/kibana/packages/kbn-optimizer/src/worker/entry_point_creator.ts
 │
 │      WARNING in ./public/index.ts 9:0-93
 │      "export 'KibanaFloatingToolbarPluginStart' was not found in './types'
 │       @ /home/kibana/kibana/packages/kbn-optimizer/src/worker/entry_point_creator.ts
 │
 │      ERROR in /home/kibana/kibana/packages/kbn-optimizer/src/worker/entry_point_creator.ts
 │      Module not found: Error: Can't resolve '../../../../plugins/kibana-floating-toolbar/common' in '/home/kibana/kibana/packages/kbn-optimizer/src/worker'
 │       @ /home/kibana/kibana/packages/kbn-optimizer/src/worker/entry_point_creator.ts 2:82-151
 │ info stopping @kbn/optimizer
 info copying assets from `public/assets` to build
 info copying server source into the build and converting with babel
 info compressing plugin into [kibanaFloatingToolbar-8.8.0.zip]
 succ plugin archive created
Done in 8.82s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant