这段代码似乎需要在 Node.js 环境中运行,但是没有找到名为 "process" 的变量。这可能是因为缺少 Node.js 的类型定义。您可以尝试运行以下命令安装类型定义:

npm i --save-dev @types/node

然后将 "node" 添加到 tsconfig 的 types 字段中,以便 TypeScript 可以正确地解析 Node.js 相关的类型和变量。

const getPerformanceInfront = void = if processclient setTimeout = performanceInfonavigationStart = windowperformancetimingdomLoading - windowperformancetimingfetchStart

原文地址: http://www.cveoy.top/t/topic/bEa7 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录