From 910895a62716a9373552c245bfdf62cd518ec99f Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Thu, 24 Jun 2021 18:36:44 +0200 Subject: [PATCH] Fix TS issue "Type error: Module '"/vercel/path1/src/modules/core/sentry/init"' has no default export." --- src/modules/core/githubActions/dispatchWorkflow.ts | 2 +- src/modules/core/githubActions/dispatchWorkflowByPath.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/core/githubActions/dispatchWorkflow.ts b/src/modules/core/githubActions/dispatchWorkflow.ts index ca7ea837..bc872ad0 100644 --- a/src/modules/core/githubActions/dispatchWorkflow.ts +++ b/src/modules/core/githubActions/dispatchWorkflow.ts @@ -1,6 +1,6 @@ import { createLogger } from '@/modules/core/logging/logger'; import { ALERT_TYPES } from '@/modules/core/sentry/config'; -import Sentry from '../sentry/init'; +import * as Sentry from '@sentry/node'; import { WorkflowsAPIResponse } from './types/WorkflowsAPIResponse'; const fileLabel = 'modules/core/githubActions/dispatchWorkflow'; diff --git a/src/modules/core/githubActions/dispatchWorkflowByPath.ts b/src/modules/core/githubActions/dispatchWorkflowByPath.ts index 2212bd3c..ef31f68f 100644 --- a/src/modules/core/githubActions/dispatchWorkflowByPath.ts +++ b/src/modules/core/githubActions/dispatchWorkflowByPath.ts @@ -4,7 +4,7 @@ import { GITHUB_REPO_NAME, } from '@/app/constants'; import { createLogger } from '@/modules/core/logging/logger'; -import Sentry from '../sentry/init'; +import * as Sentry from '@sentry/node'; import dispatchWorkflow from './dispatchWorkflow'; import { WorkflowsAPIResponse } from './types/WorkflowsAPIResponse';