Cant start the project

I am trying to develop a new widget to the project. This is the first time I am running the code here. I have all required and recommended extensions. When I run yarn dev I get this:
- info Loaded env from /home/user/Sites/Web/homarr/.env
Invalid environment variables: { NEXT_PUBLIC_DEFAULT_COLOR_SCHEME: [ 'Invalid input' ] }
- error Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Invalid environment variables
- info Loaded env from /home/user/Sites/Web/homarr/.env
Invalid environment variables: { NEXT_PUBLIC_DEFAULT_COLOR_SCHEME: [ 'Invalid input' ] }
- error Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Invalid environment variables
I tried to find some documentation on how to setup the project but couldnt find
Solution:
Hi, note that the installation from source is intended for developers or advanced users. Are you sure that you want to proceed? Please ensure that you've read the possible problems you might encounter: https://homarr.dev/docs/getting-started/installation#not-recommended-from-source
12 Replies
Cakey Bot
Cakey Bot2mo ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
❓ Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Carlos Carneiro
Carlos Carneiro2mo ago
OS: pop OS I just downloaded the code from github
Solution
Manicraft1001
Manicraft10012mo ago
Hi, note that the installation from source is intended for developers or advanced users. Are you sure that you want to proceed? Please ensure that you've read the possible problems you might encounter: https://homarr.dev/docs/getting-started/installation#not-recommended-from-source
🚀 Installation | Homarr documentation
We provide multiple installation methods. Are you a newbie to Docker? We recommend Docker Compose for beginners.
Carlos Carneiro
Carlos Carneiro2mo ago
I want to contribute by developing a widget. I will read this link
Manicraft1001
Manicraft10012mo ago
Ok. Have you copied the example.env to .env?
Carlos Carneiro
Carlos Carneiro2mo ago
yes i have oh f it! it was a motherF trailing space it is running now! I ran yarn lint to fix everything but it didnt work
Manicraft1001
Manicraft10012mo ago
Awesome. So it works now? So it's still not running?
Carlos Carneiro
Carlos Carneiro2mo ago
it is compiling but the console is complaining about some tables no existing i mean the frontend is compiling I guess I have to run some migration
Manicraft1001
Manicraft10012mo ago
yarn db:push ? Ah sorry, db:migrate
Carlos Carneiro
Carlos Carneiro2mo ago
yes I ran it running yarn dev again lets see ok, up and running! Thanks
Manicraft1001
Manicraft10012mo ago
Ok, so can I mark this as resolved? I'm happy to review and merge your contribution. Please make sure to contribute your changes so everyone can profit. @Carlos Carneiro
Carlos Carneiro
Carlos Carneiro2mo ago
@Manicraft1001 Sorry I though I had marked it as resolved already.