求助kibana开发环境报错Error: No module factory available for dependency type: CssDependency

求助我在搭建kibana开发环境时 运行命令 yarn kbn bootstrap报错了
请问如何解决

$ yarn kbn bootstrap
yarn run v1.22.19
$ node scripts/kbn bootstrap
 succ [bazel_tools] all bazel tools are correctly installed
 info [bazel] INFO: Invocation ID: 95925035-9c92-46f3-b89f-4bc5e578b817
 info [bazel] INFO: Analyzed target //packages:build (1 packages loaded, 377 targets configured).
 info [bazel] INFO: Found 1 target...
 info [bazel] ERROR: D:/kibana/packages/kbn-ui-shared-deps-npm/BUILD.bazel:135:8: Action packages/kbn-ui-shared-deps-npm/shared_built_assets failed: (Exit 1): webpack-cli.bat failed: error executing command bazel-out/host/bin/external/npm/webpack-cli/bin/webpack-cli.bat --config packages/kbn-ui-shared-deps-npm/webpack.config.js --output-path ... (remaining 3 argument(s) skipped)
 info [bazel] Browserslist: caniuse-lite is outdated. Please run:
 info [bazel]   npx browserslist@latest --update-db
 info [bazel]   Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
 info [bazel] Error: No module factory available for dependency type: CssDependency
 info [bazel]     at addDependency (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compilation.js:800:12)
 info [bazel]     at iterationOfArrayCallback (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compilation.js:208:3)
 info [bazel]     at addDependenciesBlock (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compilation.js:816:5)
 info [bazel]     at Compilation.processModuleDependencies (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compilation.js:827:4)
 info [bazel]     at afterBuild (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compilation.js:954:15)
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compilation.js:998:11
 info [bazel]     at callback (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compilation.js:734:5)
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compilation.js:782:12
 info [bazel]     at handleParseResult (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\NormalModule.js:478:12)
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\NormalModule.js:500:6
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\NormalModule.js:358:12
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\loader-runner\lib\LoaderRunner.js:373:3
 info [bazel]     at iterateNormalLoaders (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\loader-runner\lib\LoaderRunner.js:186:6
 info [bazel]     at context.callback (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\external\npm\node_modules\mini-css-extract-plugin\dist\loader.js:216:12
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compiler.js:343:11
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compiler.js:681:15
 info [bazel]     at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
 info [bazel]     at AsyncSeriesHook.lazyCompileHook (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\tapable\lib\Hook.js:154:20)
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compiler.js:678:31
 info [bazel]     at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
 info [bazel]     at AsyncSeriesHook.lazyCompileHook (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\tapable\lib\Hook.js:154:20)
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compilation.js:1423:35
 info [bazel]     at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
 info [bazel]     at AsyncSeriesHook.lazyCompileHook (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\tapable\lib\Hook.js:154:20)
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compilation.js:1414:32
 info [bazel]     at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
 info [bazel]     at AsyncSeriesHook.lazyCompileHook (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\tapable\lib\Hook.js:154:20)
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\webpack\lib\Compilation.js:1409:36
 info [bazel]
 info [bazel] C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\neo-async\async.js:16
 info [bazel]     throw new Error('Callback was already called.');
 info [bazel]           ^
 info [bazel] Error: Callback was already called.
 info [bazel]     at throwError (C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\neo-async\async.js:16:11)
 info [bazel]     at C:\users\night\_bazel_night\6nw4ondz\execroot\kibana\node_modules\neo-async\async.js:2818:7
 info [bazel]     at processTicksAndRejections (node:internal/process/task_queues:78:11)
 info [bazel] Target //packages:build failed to build
 info [bazel] Use --verbose_failures to see the command lines of failed build steps.
 info [bazel] INFO: Elapsed time: 24.403s, Critical Path: 22.61s
 info [bazel] INFO: 3 processes: 3 internal.
 info [bazel]
ERROR [bootstrap] failed:
ERROR The bazel command that was running failed to complete.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

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