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
`"The \\"apollo\\" package.json configuration key will no longer be supported in Apollo v3. Please use the apollo.config.js file for Apollo project configuration. For more information, see: https://bit.ly/2ByILPj"`
Copy file name to clipboardExpand all lines: packages/apollo-language-server/src/config/loadConfig.ts
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ import {
14
14
}from"./config";
15
15
import{getServiceFromKey}from"./utils";
16
16
importURIfrom"vscode-uri";
17
+
import{Debug}from"../utilities";
17
18
18
19
// config settings
19
20
constMODULE_NAME="apollo";
@@ -80,28 +81,26 @@ export async function loadConfig({
80
81
ApolloConfigFormat
81
82
>;
82
83
}catch(error){
83
-
thrownewError(
84
-
`A config file failed to load with options: ${JSON.stringify(
85
-
arguments[0]
86
-
)}.
87
-
The error was: ${error}`
88
-
);
84
+
returnDebug.error(`A config file failed to load with options: ${JSON.stringify(
85
+
arguments[0]
86
+
)}.
87
+
The error was: ${error}`);
89
88
}
90
89
91
90
if(configPath&&!loadedConfig){
92
-
thrownewError(
91
+
returnDebug.error(
93
92
`A config file failed to load at '${configPath}'. This is likely because this file is empty or malformed. For more information, please refer to: https://bit.ly/2ByILPj`
'The "apollo" package.json configuration key will no longer be supported in Apollo v3. Please use the apollo.config.js file for Apollo project configuration. For more information, see: https://bit.ly/2ByILPj'
100
99
);
101
100
}
102
101
103
102
if(requireConfig&&!loadedConfig){
104
-
thrownewError(
103
+
returnDebug.error(
105
104
`No Apollo config found for project. For more information, please refer to:
106
105
https://bit.ly/2ByILPj`
107
106
);
@@ -135,7 +134,7 @@ export async function loadConfig({
0 commit comments