Open Kaushalop opened 6 years ago
Since the version got upgraded for 'awilix' to 3.0.8 from 2.2.2 in this project, I believe the function might have been deprecated.
So, i made a change as per the latest API as well but does not work and the it throws out the log
Change :
container.register('repo', asValue({repo}))
Log :
Error: The server must be started with a connected repository
I have the same problem, did you solve it??
do following imports in src/index.js
const awilix = require('awilix') const { asValue} = awilix
container.register({ repo: asValue(repo) })
Running
npm start
I get the error :
container.registerValue is not a function
when i add a catch the Promise reject in src/index.js as belowI realise that the container that is created with 'awilix' does not contain this function normally nor does the di.proto.js create this function, am i missing something here ?