We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c05266 commit 8698a12Copy full SHA for 8698a12
1 file changed
adminforth/modules/codeInjector.ts
@@ -1252,8 +1252,18 @@ class CodeInjector implements ICodeInjector {
1252
}
1253
});
1254
devServer.stderr.on('data', (data) => {
1255
+ const text = data.toString();
1256
+ // pnpm/npm echo the script command they are about to run (e.g. "$ vite") to stderr,
1257
+ // and emit empty lines. These are not errors, so don't log them as such.
1258
+ const meaningful = stripAnsiCodes(text)
1259
+ .split('\n')
1260
+ .filter((line: string) => line.trim() && !line.trim().startsWith('$ '));
1261
+ if (meaningful.length === 0) {
1262
+ process.env.HEAVY_DEBUG && console.log(`[AdminForth SPA]:`, text);
1263
+ return;
1264
+ }
1265
afLogger.error(`[AdminForth SPA ERROR]:`);
- afLogger.error(data.toString());
1266
+ afLogger.error(text);
1267
1268
1269
0 commit comments