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 ec1dfb3 commit 0a40030Copy full SHA for 0a40030
packages/common/warning.ts
@@ -7,7 +7,8 @@ export const silenceUseClientWarning = (
7
onwarn(warning, defaultHandler) {
8
if (
9
warning.code === 'MODULE_LEVEL_DIRECTIVE' &&
10
- warning.message.includes('use client')
+ (warning.message.includes('use client') ||
11
+ warning.message.includes('use server'))
12
) {
13
return
14
}
0 commit comments