我使用了nestjs-sentrySentryModule.forRoot
的自述文件中提到的示例。
我在运行时收到以下错误npm run start:dev
。
错误日志:
let SentryService = SentryService_1 = class SentryService extends common_1.ConsoleLogger {
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (C:\project\server\node_modules\@ntegral\nestjs-sentry\dist\sentry.service.js:39:76)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (C:\project\server\node_modules\@ntegral\nestjs-sentry\dist\sentry-core.module.js:21:26)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
版本:
"@nestjs/common": "6.5.3",
"@nestjs/core": "6.5.3",
"@nestjs/jwt": "6.1.1",
"@nestjs/passport": "6.1.0",
"@nestjs/platform-express": "6.5.3",
"@nestjs/serve-static": "^2.1.3",
"@nestjs/swagger": "3.1.0",
"@nestjs/typeorm": "6.1.3",
"@ntegral/nestjs-sentry": "^3.0.3",
"@sentry/node": "^6.10.0",
"@sentry/tracing": "^6.10.0",
"node": "12.18.0"
请提出解决方法/前进的方向。