Cannot find module '@ioc:Adonis/Core/Application'
When I run the following command
node ace invoke @adonisjs/lucid
I am getting this error every time. I used the documentation of adonis v5 for the installation
skip config/database.ts
update .env
update tsconfig.json { types += @adonisjs/lucid }
update .adonisrc.json { commands += @adonisjs/lucid/build/commands }
update .adonisrc.json { providers += @adonisjs/lucid }
⚠ warn Unable to generate manifest file. Check the following error stack for more info
✖ fatal Error: Cannot find module '@ioc:Adonis/Core/Application'
Package version
typescript adonis js v5
Node.js and npm version
Node v12.18.0 NPM v6.14.5
package.json
"dependencies": {
"@adonisjs/ace": "^6.9.3",
"@adonisjs/core": "^5.0.0-preview-rc-1.7",
"@adonisjs/fold": "^6.3.5",
"@adonisjs/lucid": "^8.2.2",
"pg": "^8.0.3",
"proxy-addr": "^2.0.6",
"reflect-metadata": "^0.1.13",
"source-map-support": "^0.5.19"
}
Hey @prakashbharti786! 👋
After upgrading all of your package, do you still have this issue?
H
Hey @prakashbharti786! 👋
After upgrading all of your packages, do you still have this issue?
Hi after upgrading, this issue has been resolved. Thanks for your reply
@prakashpie Please, how did you go about upgrading your package?
@prakashpie Please, how did you go about upgrading your package?
Hi @WuniCodeDev @investeusa my package.json look like this
"dependencies": {
"@adonisjs/core": "^5.0.4-preview-rc-2.1",
"@adonisjs/lucid": "^10.0.0",
"@adonisjs/repl": "^1.1.6",
"proxy-addr": "^2.0.6",
"reflect-metadata": "^0.1.13",
"source-map-support": "^0.5.19"
}
For quick help, you can checkout the Adonis Starter Kit Repo.
You can check their guide too https://preview.adonisjs.com/guides/quick-start