We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5463f8f commit d2368b6Copy full SHA for d2368b6
packages/@lwc/engine-core/src/framework/check-version-mismatch.ts
@@ -38,7 +38,12 @@ export function checkVersionMismatch(
38
) {
39
const versionMatcher = func.toString().match(LWC_VERSION_COMMENT_REGEX);
40
if (!isNull(versionMatcher) && !warned) {
41
- if (typeof process === 'object' && process.env.SKIP_LWC_VERSION_MISMATCH_CHECK === 'true') {
+ if (
42
+ typeof process === 'object' &&
43
+ typeof process?.env === 'object' &&
44
+ process.env &&
45
+ process.env.SKIP_LWC_VERSION_MISMATCH_CHECK === 'true'
46
+ ) {
47
warned = true; // skip printing out version mismatch errors when env var is set
48
return;
49
}
0 commit comments