Webpack error when building platform plugins #123236
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Operations
Team label for Operations Team
Kibana version: current
main
(HEAD: 6dc31d7)Describe the bug:
I am seeing a webpack error when building platform plugins.
Steps to reproduce:
Make sure the Kibana repo directory is not named "kibana".
Use the current
main
branch and run the script to build platform plugins:Observe the console logs:
This error message in the console logs is telling:
"directory /Users/joe/GitHub/kibana/src/plugins/kibana_react/public doesn't exist"
My kibana directory is
kibana-1
, notkibana
.Also, I'm not sure why I am only seeing this error when running
node scripts/build_kibana_platform_plugins
, but I am not seeing it when using the optimizer vianpm start
- perhaps that's indicative of a bigger problem? Isnpm start
swallowing errors like this?Expected behavior:
Webpack should behave the same whether initiated viaEdit: see Webpack error when building platform plugins #123236 (comment)npm start
ornode scripts/build_kibana_platform_plugins
(?)Any additional context:
It looks like the the problem was introduced in #122370. Any bigger fix to the bullets outlined above should also fix this problematic import:
kibana/x-pack/examples/reporting_example/public/application.tsx
Line 12 in 6dc31d7
Edit: since I opened this issue, it looks like the problematic import has been fixed in #121644:
kibana/x-pack/examples/reporting_example/public/application.tsx
Line 12 in cd06e5f
The text was updated successfully, but these errors were encountered: