From e1643e6d4d98847022eb4967c6185107be96678e Mon Sep 17 00:00:00 2001 From: Dotan Simha Date: Wed, 28 Jul 2021 18:27:51 +0300 Subject: [PATCH] Fix for loaders issues with new GraphQL-Tools version (#6375) --- .changeset/quiet-horses-grin.md | 6 ++++++ packages/graphql-codegen-cli/package.json | 2 +- yarn.lock | 18 +++++++++--------- 3 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 .changeset/quiet-horses-grin.md diff --git a/.changeset/quiet-horses-grin.md b/.changeset/quiet-horses-grin.md new file mode 100644 index 00000000000..e58146c1070 --- /dev/null +++ b/.changeset/quiet-horses-grin.md @@ -0,0 +1,6 @@ +--- +'@graphql-codegen/cli': patch +--- + +Fix exception `loader.loaderId is not a function` caused by conflict with an internal dependency of Codegen. + diff --git a/packages/graphql-codegen-cli/package.json b/packages/graphql-codegen-cli/package.json index 1a66102beaf..0bca2d2b148 100644 --- a/packages/graphql-codegen-cli/package.json +++ b/packages/graphql-codegen-cli/package.json @@ -49,7 +49,7 @@ "@graphql-tools/graphql-file-loader": "^6.2.7", "@graphql-tools/json-file-loader": "^6.2.6", "@graphql-tools/load": "^6.2.8", - "@graphql-tools/prisma-loader": "^6.3.0", + "@graphql-tools/prisma-loader": "6.3.0", "@graphql-tools/url-loader": "^6.10.1", "@graphql-tools/utils": "^7.9.1", "ansi-escapes": "^4.3.1", diff --git a/yarn.lock b/yarn.lock index 67c0215eb74..e0ee8b2f553 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2122,7 +2122,7 @@ dependencies: tslib "~2.0.1" -"@graphql-tools/prisma-loader@^6.3.0": +"@graphql-tools/prisma-loader@6.3.0": version "6.3.0" resolved "https://registry.yarnpkg.com/@graphql-tools/prisma-loader/-/prisma-loader-6.3.0.tgz#c907e17751ff2b26e7c2bc75d0913ebf03f970da" integrity sha512-9V3W/kzsFBmUQqOsd96V4a4k7Didz66yh/IK89B1/rrvy9rYj+ULjEqR73x9BYZ+ww9FV8yP8LasWAJwWaqqJQ== @@ -3186,7 +3186,12 @@ dependencies: "@types/node" "*" -"@types/node@*", "@types/node@14.17.6", "@types/node@^14.14.33": +"@types/node@*", "@types/node@^15.0.1": + version "15.6.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-15.6.0.tgz#f0ddca5a61e52627c9dcb771a6039d44694597bc" + integrity sha512-gCYSfQpy+LYhOFTKAeE8BkyGqaxmlFxe+n4DKM6DR0wzw/HISUE/hAmkC/KT8Sw5PCJblqg062b3z9gucv3k0A== + +"@types/node@14.17.6", "@types/node@^14.14.33": version "14.17.6" resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.6.tgz#cc61c8361c89e70c468cda464d1fa3dd7e5ebd62" integrity sha512-iBxsxU7eswQDGhlr3AiamBxOssaYxbM+NKXVil8jg9yFXvrfEFbDumLD/2dMTB+zYyg7w+Xjt8yuxfdbUHAtcQ== @@ -3201,11 +3206,6 @@ resolved "https://registry.npmjs.org/@types/node/-/node-12.12.55.tgz#0aa266441cb9e1fd3e415a8f619cb7d776667cdd" integrity sha512-Vd6xQUVvPCTm7Nx1N7XHcpX6t047ltm7TgcsOr4gFHjeYgwZevo+V7I1lfzHnj5BT5frztZ42+RTG4MwYw63dw== -"@types/node@^15.0.1": - version "15.6.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-15.6.0.tgz#f0ddca5a61e52627c9dcb771a6039d44694597bc" - integrity sha512-gCYSfQpy+LYhOFTKAeE8BkyGqaxmlFxe+n4DKM6DR0wzw/HISUE/hAmkC/KT8Sw5PCJblqg062b3z9gucv3k0A== - "@types/normalize-package-data@^2.4.0": version "2.4.0" resolved "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" @@ -13363,12 +13363,12 @@ rxjs@^6.3.3, rxjs@^6.4.0, rxjs@^6.5.1, rxjs@^6.6.0, rxjs@^6.6.3, rxjs@^6.6.7: dependencies: tslib "^1.9.0" -safe-buffer@5.1.2, safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: +safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-buffer@^5.2.0, safe-buffer@~5.2.0: +safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==