Skip to content

Commit bf0b16f

Browse files
authored
fix: escape process.env.NODE_ENV in console warning to solve the error when using with vitejs (#144)
1 parent a4f034d commit bf0b16f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middlewares/error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function noticeAbsentStack() {
8585
schema: myGraphQLSchema,
8686
formatError: (error) => ({
8787
message: error.message,
88-
stack: process.env.NODE_ENV === 'development' ? error.stack.split('\\n') : null,
88+
stack: process.env\u200b.NODE_ENV === 'development' ? error.stack.split('\\n') : null,
8989
})
9090
});
9191

0 commit comments

Comments
 (0)