create-graphql-app icon indicating copy to clipboard operation
create-graphql-app copied to clipboard

No provider for AbstractLogger!

Open beepsoft opened this issue 5 years ago • 0 comments

I just tried the the default app generation and run and it and it fails with

Error: No provider for AbstractLogger! (CarsService -> AbstractLogger)

This was my session:

> cga init trial
? Select seed type 
  1) graphql-server-typed: Typescript server deployed on now
  2) apollo-typed-lambda: Typescript server for aws lambda deployment
  Answer: 1
> cd trial
> yarn
> yarn build
> yarn start:dev
yarn run v1.19.2
$ ts-node src/main.ts
info: starting graphql server...

<..>/trial/node_modules/injection-js/injection.bundle.js:488
        var error = (originalError ? wrappedError('', originalError) : Error());
                                                                       ^
Error: No provider for AbstractLogger! (CarsService -> AbstractLogger)
    at injectionError (<..>/trial/node_modules/injection-js/injection.bundle.js:488:72)
    at noProviderError (<..>/trial/node_modules/injection-js/injection.bundle.js:517:16)
    at ReflectiveInjector_._throwOrNull (<..>/trial/node_modules/injection-js/injection.bundle.js:1666:23)
    at ReflectiveInjector_._getByKeyDefault (<..>/trial/node_modules/injection-js/injection.bundle.js:1694:29)
    at ReflectiveInjector_._getByKey (<..>/trial/node_modules/injection-js/injection.bundle.js:1646:29)
    at ReflectiveInjector_._getByReflectiveDependency (<..>/trial/node_modules/injection-js/injection.bundle.js:1635:25)
    at <..>/trial/node_modules/injection-js/injection.bundle.js:1617:97
    at Array.map (<anonymous>)
    at ReflectiveInjector_._instantiate (<..>/trial/node_modules/injection-js/injection.bundle.js:1617:63)
    at ReflectiveInjector_._instantiateProvider (<..>/trial/node_modules/injection-js/injection.bundle.js:1609:29)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

beepsoft avatar Dec 03 '19 10:12 beepsoft