Why Doesn't container.make Work in an AdonisJS 6 Command Class? #4776
-
In package development(pkg-starter-kit) in AdonisJS 6, why doesn't container.make perform the call inside a command class?
RuntimeException: Cannot resolve binding "app" from the container |
Beta Was this translation helpful? Give feedback.
Answered by
RomainLanz
Oct 26, 2024
Replies: 1 comment 1 reply
-
Hey @atakansn! 👋🏻 Have you started the application by setting the option 📚 https://docs.adonisjs.com/guides/ace/creating-commands#command-metadata |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
atakansn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @atakansn! 👋🏻
Have you started the application by setting the option
startApp
totrue
?📚 https://docs.adonisjs.com/guides/ace/creating-commands#command-metadata