Closed Yusadolat closed 1 year ago
@Yusadolat thanks for the report, would you mind sharing your tsconfig.production.json so we can see which compiler option triggers this?
Sure, Below is the config.
//tsconfig.production.json
{
"extends": "./tsconfig",
"compilerOptions": {
"sourceMap": true,
"inlineSources": true,
"sourceRoot": "/",
"esModuleInterop": true
}
}
//tsconfig.json
{
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"downlevelIteration": true,
"isolatedModules": false,
"sourceMap": true,
"module": "commonjs",
"target": "es6",
"lib": [ "ES2020.Promise", "es2019", "DOM", "ES6" ,"DOM.Iterable", "ScriptHost" ],
"moduleResolution": "node",
"resolveJsonModule": true,
"outDir": "build",
"allowJs": true,
"noEmitHelpers": true,
"importHelpers": true,
"esModuleInterop": true,
"strictNullChecks": true,
"baseUrl": ".",
"paths": {
"@application/*": ["src/application/*"],
"@domain/*": ["src/domain/*"],
"@dtos/*": ["src/dtos/*"],
"@infrastructure/*": ["src/infrastructure/*"],
"@shared/*": ["src/shared/*"],
"@test-application/*": ["test/application/*"],
"@test-domain/*": ["test/domain/*"],
"@test-infrastructure/*": ["test/infrastructure/*"],
"@utils/*": ["src/utils/*"],
"@modules/*": ["src/modules/*"],
"@auth/*": ["src/modules/auth/*"],
"@warehousing/*": ["src/modules/warehousing/*"],
"@machine-management/*": ["src/modules/machine-management/*"],
"@notification/*": ["src/modules/notification/*"]
}
},
"include": [
"src",
"src/application/*",
"src/domain/*",
"src/infrastructure/*",
"test",
"__mocks__",
"scripts/globalTeardown.js"
],
"exclude": [
"node_modules",
"build"
]
}
@Yusadolat mind upgrading to latest version and see if the error still happens?
Closing as we removed the __DEBUG_BUILD__ variable, but please feel free to reopen if this reappears
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
SDK Version
0.3.0
Link to Sentry event
No response
What environment is your node script running in?
Express(Typescript)
How is your code deployed and bundled?
tsc -p tsconfig.production.json
Steps to Reproduce
NodeJS version: 16.14.2
Expected Result
It expected to compile without any issue
Actual Result