Can't build the project on Heroku #3861
-
Hello |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello, Can you provide a reproduction repository? |
Beta Was this translation helpful? Give feedback.
-
I found the issue, When I set up the authentication and run this command: I fixed it by renaming it to the correct one User I think when setup the auth it should be following the naming convention even if the user entered it with a small case, something like when creating a new model using this command line: |
Beta Was this translation helpful? Give feedback.
I found the issue, When I set up the authentication and run this command:
node ace configure @adonisjs/auth
it asked me to enter the model name and I entered user, not User so it created the model called user, and later I thought it was an issue so I renamed it to User but the git didn't notice the case-sensitive change so on my local is User but on GitHub is user
I fixed it by renaming it to the correct one User
I think when setup the auth it should be following the naming convention even if the user entered it with a small case, something like when creating a new model using this command line:
node ace make:model user => It will create a new model called User not user