Ally : Cannot find module 'AllyProvider'

Hello everyone,

I’m trying to install Ally from https://adonisjs.com/docs/4.1/social-auth

I install Ally with : adonis install @adonisjs/ally

But when I add the provider on start/app.js

const providers = [
  '@adonisjs/ally/providers/AllyProvider'
]

I have this error :

Error: Cannot find module '@adonisjs/ally/providers/AllyProvider'
Require stack:
- /app/node_modules/require-stack/src/index.js
 - /app/node_modules/require-stack/index.js
 - /app/node_modules/@adonisjs/fold/src/Ioc/index.js
 - /app/node_modules/@adonisjs/fold/index.js
- /app/server.js

1 requireStack
/app/node_modules/require-stack/src/index.js:44

2 anonymous
 /app/node_modules/@adonisjs/fold/src/Registrar/index.js:104

3 arrayMap
/app/node_modules/lodash/lodash.js:639

4 Function.map
/app/node_modules/lodash/lodash.js:9554

5 interceptor
/app/node_modules/lodash/lodash.js:16997

6 thru
  /app/node_modules/lodash/lodash.js:8795

Can you help me ?
Thank you

Hi @maxime!

There was some bug with VSCode + Windows + updating node_modules.
Try to close VSCode and then install adonis ally again and see if it solves it.

Also what’s the Ally version in pacakge lock / package json?

1 Like

Hello @McSneaky it seems to work now.
I’m doing more tests tomorrow.

Once again, thank you.