KaotoIO / kaoto-ui

Frontend for the Kaoto project to provide an easy-to-use integration framework based on Apache Camel.
https://www.kaoto.io
Apache License 2.0
89 stars 44 forks source link

Add Exception Message for Missing .env File #595

Open kahboom opened 2 years ago

kahboom commented 2 years ago

Describe the bug When the user does not set up their own .env file, the UI fails to load, and doesn't provide users with the most helpful error to let them know what went wrong.

To Reproduce Steps to reproduce the behavior:

  1. Clone the Kaoto UI app
  2. Run yarn install
  3. Open your browser and navigate to the URL
  4. See error

Expected behavior We should be given a more useful error when the .env file has not been configured properly. This could likely be fixed via Webpack configuration files in /src/webpack.common.js or /src/webpack.dev.js.

JoePorterDev commented 1 year ago

Hey @kahboom I'll have a go at this if it's still relevant

kahboom commented 1 year ago

Thanks @JoePorterDev ! Yeah it would definitely be helpful :)