lucid icon indicating copy to clipboard operation
lucid copied to clipboard

Cannot find module '@ioc:Adonis/Core/Application'

Open prakashpie opened this issue 6 years ago • 5 comments

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"
  }

prakashpie avatar Jun 21 '20 07:06 prakashpie

Hey @prakashbharti786! 👋

After upgrading all of your package, do you still have this issue?

RomainLanz avatar Jun 26 '20 19:06 RomainLanz

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 avatar Jun 27 '20 09:06 prakashpie

@prakashpie Please, how did you go about upgrading your package?

WuniCodeDev avatar Feb 04 '21 09:02 WuniCodeDev

@prakashpie Please, how did you go about upgrading your package?

investeusa avatar Feb 09 '21 01:02 investeusa

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

prakashpie avatar Feb 09 '21 06:02 prakashpie