You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder, what is the proper use of this repository? Especially I mean the server part. It has been some time since it was released, dependencies evolved, some renovate bot pull request seem to be merged, some not...
Nowadays, if I want to use it, I am getting warnings or errors and it does not compile. Is it possible to use it standalone on a clean system or it needs some prerequisites like accounts-js installed/linked? Or is this trouble caused by fragility of accounts-js?
Nice article, nice idea, but with an increased interest in GraphQL more people will quite likely stumble upon the article so it might make a sense to keep this updated to some extent and give an easy entry to play with.
Output
Initial install
prishub@ubuntu-one:~/dev/xxx/web/graphql-modules-accountsjs-boilerplate$ cd server
prishub@ubuntu-one:~/dev/xxx/web/graphql-modules-accountsjs-boilerplate/server$ yarn install
yarn install v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @accounts/graphql-api@0.9.0" has incorrect peer dependency "@graphql-modules/core@0.2.15".
warning "@accounts/graphql-api > @accounts/password@0.9.0" has incorrect peer dependency "@accounts/server@^0.7.0".
warning " > @accounts/password@0.9.2" has incorrect peer dependency "@accounts/server@^0.7.0".
warning "apollo-server > apollo-server-core > apollo-tracing@0.4.0" has incorrect peer dependency "graphql@0.10.x - 14.0.x".
[4/4] Building fresh packages...
Done in 29.68s.
Removing warnings
prishub@ubuntu-one:~/dev/xxx/web/graphql-modules-accountsjs-boilerplate/server$ yarn add @graphql-modules/core@0.2.15
yarn add v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@accounts/graphql-api > @accounts/password@0.9.0" has incorrect peer dependency "@accounts/server@^0.7.0".
warning " > @accounts/password@0.9.2" has incorrect peer dependency "@accounts/server@^0.7.0".
warning "apollo-server > apollo-server-core > apollo-tracing@0.4.0" has incorrect peer dependency "graphql@0.10.x - 14.0.x".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 2 new dependencies.
info Direct dependencies
└─ @graphql-modules/core@0.2.15
info All dependencies
├─ @graphql-modules/core@0.2.15
└─ @graphql-modules/di@0.2.15
Done in 14.43s.
prishub@ubuntu-one:~/dev/xxx/web/graphql-modules-accountsjs-boilerplate/server$ yarn add @accounts/server@^0.7.0
yarn add v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "apollo-server > apollo-server-core > apollo-tracing@0.4.0" has incorrect peer dependency "graphql@0.10.x - 14.0.x".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ @accounts/server@0.7.0
info All dependencies
└─ @accounts/server@0.7.0
Done in 15.99s.
prishub@ubuntu-one:~/dev/xxx/web/graphql-modules-accountsjs-boilerplate/server$ yarn add graphql@0.13.1
yarn add v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ graphql@0.13.1
info All dependencies
└─ graphql@0.13.1
Done in 13.12s.
Compilation
prishub@ubuntu-one:~/dev/xxx/web/graphql-modules-accountsjs-boilerplate/server$ tsc
node_modules/@apollographql/apollo-tools/lib/schema/resolveObject.d.ts:3:16 - error TS2665: Invalid module name in augmentation. Module 'graphql/type/definition' resolves to an untyped module at '/home/prishub/dev/xxx/web/graphql-modules-accountsjs-boilerplate/server/node_modules/graphql/type/definition.js', which cannot be augmented.
3 declare module "graphql/type/definition" {
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/node/index.d.ts:200:11 - error TS2300: Duplicate identifier 'IteratorResult'.
200 interface IteratorResult<T> { }
~~~~~~~~~~~~~~
../../../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6
41 type IteratorResult<T, TReturn = any> = IteratorYieldResult<T>| IteratorReturnResult<TReturn>;~~~~~~~~~~~~~~
'IteratorResult' was also declared here.
node_modules/apollo-cache-control/dist/index.d.ts:22:16 - error TS2665: Invalid module name in augmentation. Module 'graphql/type/definition' resolves to an untyped module at '/home/prishub/dev/xxx/web/graphql-modules-accountsjs-boilerplate/server/node_modules/graphql/type/definition.js', which cannot be augmented.
22 declare module 'graphql/type/definition' {
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/graphql-codegen-typescript-common/dist/helpers.d.ts:2:28 - error TS2307: Cannot find module 'handlebars'.
2 import { SafeString } from 'handlebars';~~~~~~~~~~~~
node_modules/graphql-codegen-typescript-common/dist/helpers.d.ts:3:29 - error TS2307: Cannot find module 'handlebars'.
3 import * as Handlebars from 'handlebars';~~~~~~~~~~~~
src/modules/app/app.module.ts:16:34 - error TS2322: Type 'import("/home/prishub/dev/xxx/web/graphql-modules-accountsjs-boilerplate/server/node_modules/@accounts/server/lib/accounts-server").AccountsServer' is not assignable to type'import("/home/prishub/dev/xxx/web/graphql-modules-accountsjs-boilerplate/server/node_modules/@accounts/graphql-api/node_modules/@accounts/server/lib/accounts-server").AccountsServer'.
Types have separate declarations of a private property 'services'.
16 AccountsModule.forRoot({ accountsServer }),
~~~~~~~~~~~~~~
node_modules/@accounts/graphql-api/lib/modules/accounts/index.d.ts:10:5
10 accountsServer: AccountsServer;~~~~~~~~~~~~~~
The expected type comes from property 'accountsServer' which is declared here on type'AccountsModuleConfig'
src/modules/posts/providers/posts.provider.ts:3:30 - error TS2307: Cannot find module '@models'.
3 import { PostDbObject } from "@models";~~~~~~~~~
src/modules/posts/resolvers/mutation.resolvers.ts:1:28 - error TS2307: Cannot find module '@models'.
1 import { IResolvers } from "@models";~~~~~~~~~
src/modules/posts/resolvers/post.resolvers.ts:2:28 - error TS2307: Cannot find module '@models'.
2 import { IResolvers } from '@models';~~~~~~~~~
src/modules/posts/resolvers/query.resolvers.ts:1:28 - error TS2307: Cannot find module '@models'.
1 import { IResolvers } from "@models";~~~~~~~~~
src/modules/posts/resolvers/user.resolvers.ts:2:28 - error TS2307: Cannot find module '@models'.
2 import { IResolvers } from "@models";~~~~~~~~~
../../../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6 - error TS2300: Duplicate identifier 'IteratorResult'.
41 type IteratorResult<T, TReturn = any> = IteratorYieldResult<T>| IteratorReturnResult<TReturn>;~~~~~~~~~~~~~~
node_modules/@types/node/index.d.ts:200:11
200 interface IteratorResult<T> { }
~~~~~~~~~~~~~~
'IteratorResult' was also declared here.
Found 12 errors.
The text was updated successfully, but these errors were encountered:
I wonder, what is the proper use of this repository? Especially I mean the server part. It has been some time since it was released, dependencies evolved, some renovate bot pull request seem to be merged, some not...
Nowadays, if I want to use it, I am getting warnings or errors and it does not compile. Is it possible to use it standalone on a clean system or it needs some prerequisites like accounts-js installed/linked? Or is this trouble caused by fragility of accounts-js?
Nice article, nice idea, but with an increased interest in GraphQL more people will quite likely stumble upon the article so it might make a sense to keep this updated to some extent and give an easy entry to play with.
Output
Initial install
Removing warnings
Compilation
The text was updated successfully, but these errors were encountered: