Skip to content

Allow consumers to disable skipLibCheck by adding // @ts-ignore to imports for dependencies that might not ever be added? #14066

Closed
@700software

Description

@700software

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch @sentry/[email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/@sentry/nextjs/build/types/config/types.d.ts b/node_modules/@sentry/nextjs/build/types/config/types.d.ts
index 48a1953..f9386d2 100644
--- a/node_modules/@sentry/nextjs/build/types/config/types.d.ts
+++ b/node_modules/@sentry/nextjs/build/types/config/types.d.ts
@@ -1,5 +1,6 @@
 import type { GLOBAL_OBJ } from '@sentry/utils';
 import type { SentryWebpackPluginOptions } from '@sentry/webpack-plugin';
+// @ts-ignore
 import type { DefinePlugin, WebpackPluginInstance } from 'webpack';
 export type { WebpackPluginInstance };
 export type ExportedNextConfig = NextConfigObject | NextConfigFunction;

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions