[v5] auth setup cannot find '@ioc:Adonis/Addons/Auth' #2316
-
Hello, I follow https://preview.adonisjs.com/guides/auth/setup to setup auth (api guard, lucid model). In both config/auth.ts and contracts/auth.ts files, the message below is shown when I hover '@ ioc:Adonis/Addons/Auth' (space after @ intentionally left here)
Also:
And "auth" not resolved in HttpContextContract (in a Controller)
Using versions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hey @vookio! 👋 Try to restart the TypeScript Server of your IDE (or directly your IDE). If that doesn't fix anything, could you please try to delete your |
Beta Was this translation helpful? Give feedback.
-
use this command should resolve your problem : |
Beta Was this translation helpful? Give feedback.
Hey @vookio! 👋
Try to restart the TypeScript Server of your IDE (or directly your IDE).
Sometimes, the IDE doesn't load the typing well.
If that doesn't fix anything, could you please try to delete your
node_modules
folder and re-runnpm install
?