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 bc580c5 commit a5eaf38Copy full SHA for a5eaf38
packages/@lwc/ssr-client-utils/src/index.ts
@@ -62,6 +62,6 @@ export function registerLwcStyleComponent() {
62
}
63
64
// Only used in LWC's Karma tests
65
-if (process.env.NODE_ENV === 'test-karma-lwc') {
+if (typeof process !== 'undefined' && process?.env?.NODE_ENV === 'test-karma-lwc') {
66
(window as any).__lwcClearStylesheetCache = () => stylesheetCache.clear();
67
0 commit comments