provectus / kafka-ui

Open-Source Web UI for Apache Kafka Management
Apache License 2.0
8.97k stars 1.1k forks source link

Maven build failed #4415

Open jainvi077 opened 3 months ago

jainvi077 commented 3 months ago

Issue submitter TODO list

Describe the bug (actual behavior)

I am running mvn clean install -Pprod -DskipTests command at the root and react build fails with the following error

vite v4.0.0 building for production... [INFO] transforming... [INFO] â?? 3 modules transformed. [INFO] â?? 3 modules transformed.[vite]: Rollup failed to resolve import "components/App" from "C:/RealTime2/plt-realtime-kafka-ui/kafka-ui-react-app/src/index.tsx". [INFO] This is most likely unintended because it can break your application at runtime. [INFO] If you do want to externalize this module explicitly add it to [INFO] build.rollupOptions.external [INFO] error during build: [INFO] Error: [vite]: Rollup failed to resolve import "components/App" from "C:/RealTime2/plt-realtime-kafka-ui/kafka-ui-react-app/src/index.tsx". [INFO] This is most likely unintended because it can break your application at runtime. [INFO] This is most likely unintended because it can break your application at runtime.â??ELIFECYCLEâ?? Command failed with exit code 1. [INFO] If you do want to externalize this module explicitly add it to [INFO] build.rollupOptions.external

Expected behavior

No response

Your installation details

mvn clean install -Pprod -DskipTests

Steps to reproduce

run mvn clean install -Pprod -DskipTests at the root level

Screenshots

No response

Logs

No response

Additional context

No response

github-actions[bot] commented 3 months ago

Hello there jainvi077! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

Haarolean commented 3 months ago

It doesn't work on Windows: here

jainvi077 commented 3 months ago

Thanks. Does it work on linux ? any plan to fix it in windows.

Haarolean commented 3 months ago

@jainvi077 yes, it does work on linux. I have addressed your issue in this PR: https://github.com/kafbat/kafka-ui/pull/214