Hi Guys, I have a question to ask about IOC. For this question assumes this is my app.js looks like:
const providers = [
‘example/providers/AProvider’, // has namespaces: Example/A/A1, Example/A/A2
‘example/providers/BProvider’, // has namespaces: Example/B/B1, Example/B/B2
‘example/providers/CProvider’, // Example/C/C1 Depends on Example/A/A1
When I started it, it gave me “Cannot find module” error. So the question is what would the right way to do this?
- I already read doc about adonis/fold must be dev dependencies, so no mistake there
- Package registered installed via npm