JavaScript 错误错误
ReferenceError: Cannot access before initializationReferenceError: 初始化前无法访问
用 let 或 const 声明的变量在暂时性死区内被提前访问。
browsernode
查看详情 SyntaxError: Applying delete to unqualified name in strict mode在严格模式下,delete 运算符被用于普通变量名,此操作不被允许。
在严格模式下,不能对变量、函数参数或函数名使用 delete。delete 运算符仅用于删除对象属性,而非变量。
只对对象属性使用 delete:delete obj.prop。若要"移除"变量,将其设为 undefined 或 null。若需要移除全局变量,使用 delete globalThis.name 而非 delete name。
ReferenceError: Cannot access before initialization用 let 或 const 声明的变量在暂时性死区内被提前访问。
ERR_TLS_CERT_ALTNAME_INVALID主机名与服务器 TLS 证书中的任何主题备用名称(SAN)均不匹配。
TypeError: Cannot read properties of undefined/null尝试访问 undefined 或 null 上的属性或方法。
EADDRINUSE该地址(端口)已被另一个进程占用。
TypeError: Assignment to constant variable尝试对 const 声明的变量重新赋值。
ERR_OSSL_EVP_UNSUPPORTEDOpenSSL 操作不受支持,通常因为 Node.js 17+ 使用的 OpenSSL 3.0 默认禁用了遗留算法。