petalframework / petal_boilerplate

Phoenix + Tailwind + Petal Components Boilerplate
https://petal.build
145 stars 19 forks source link

Setup and run errors #22

Closed belgoros closed 1 week ago

belgoros commented 1 week ago

Starting the app with mix phx.server fails with the below error:

petal_boilerplate git:(main) ✗ mix phx.server
Unchecked dependencies for environment dev:
* petal_components (../petal_components)
  the dependency is not available
** (Mix) Can't continue due to errors on dependencies

Steps to reproduce:

bitshaker commented 1 week ago

I'm having the same issue.

I'm running in devcontainer on MacOS 14.6.1

mitkins commented 1 week ago

I recently updated the boilerplate, this might be a mistake I've introduced. I'll review this when I get a chance

bitshaker commented 1 week ago

I manually went in to mix.exs and updated the petal_components dependency as it looks like it was pretty old at 1.0.

Once I updated it to this

{:petal_components, "~> 2.0.3"},

things started working with mix setup

mitkins commented 1 week ago

I added the above solution. Should be working now!