maxgalbu / adonis5-jwt

JWT Authentication service for Adonisjs v5
MIT License
86 stars 15 forks source link

Expected to find namespace named ''@ioc:Adonis/Addons/Auth'' #29

Open BayuDC opened 1 year ago

BayuDC commented 1 year ago

I have installed @adonisjs/auth and @adonisjs/lucid but this thing happen when i do the node ace configure adonis5-jwt and i don't know why

   Error: Expected to find namespace named ''@ioc:Adonis/Addons/Auth''.

   ⁃ Object.throwIfNullOrUndefined
     .../node_modules/.pnpm/@ts-morph+common@0.11.1/node_modules/@ts-morph/common/dist/ts-morph-common.js:469
   ⁃ SourceFile.getModuleOrThrow
     .../node_modules/.pnpm/ts-morph@12.2.0/node_modules/ts-morph/dist/ts-morph.js:11160
   ⁃ getDefinedProviders
     .../node_modules/.pnpm/adonis5-jwt@1.1.7/node_modules/adonis5-jwt/build/instructions.js:127
paragrudani1 commented 9 months ago

@BayuDC did you get it solved this issue? if yes, please share with me solution.

BayuDC commented 9 months ago

no, i finally implemented my own jwt middleware instead of using this package

paragrudani1 commented 9 months ago

Can you please share with me any code?