diff --git a/.changeset/fluffy-rice-push.md b/.changeset/fluffy-rice-push.md index 69dd7fe4f6..dc56db4678 100644 --- a/.changeset/fluffy-rice-push.md +++ b/.changeset/fluffy-rice-push.md @@ -2,4 +2,28 @@ '@backstage/create-app': patch --- -Fixing dependency resolution for problematic library graphql-language-service-interface +Fixing dependency resolution for problematic library `graphql-language-service-interface`. + +This change might not have to be applied to your local installation, however if you run into this error: + +``` +Error: Failed to compile. +/tmp/backstage-e2e-uMeycm/test-app/node_modules/graphql-language-service-interface/esm/GraphQLLanguageService.js 100:23 +Module parse failed: Unexpected token (100:23) +You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders +| } +| let customRules = null; +> if (extensions?.customValidationRules && +| typeof extensions.customValidationRules === 'function') { +| customRules = extensions.customValidationRules(this._graphQLConfig); +``` + +You can fix it by adding the following to the root `package.json`. + +```json +... +"resolutions": { + "graphql-language-service-interface": "2.8.2" + }, +... +```