Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error after upgrading to [email protected] (A class can only implement an object type or intersection of object types with statically known members.) #109

Open
rostislav-simonik opened this issue Sep 7, 2024 · 1 comment · May be fixed by #110

Comments

@rostislav-simonik
Copy link

export declare class TsconfigPathsPlugin implements ResolvePluginInstance {
    source: string;
    target: string;
    log: Logger.Logger;
    baseUrl?: string | undefined;
    absoluteBaseUrl: string;
    extensions: ReadonlyArray<string>;
    referenceMatchMap: Record<string, TsconfigPaths.MatchPathAsync>;
    matchPath: TsconfigPaths.MatchPathAsync;
    constructor(rawOptions?: Partial<Options.Options>);
    apply(resolver: Resolver): void;
}

is failing on implements ResolvePluginInstance with error

A class can only implement an object type or intersection of object types with statically known members.ts(2422)
(alias) type ResolvePluginInstance = {
    [index: string]: any;
    apply: (arg0: Resolver) => void;
} | ((this: Resolver, arg1: Resolver) => void)
import ResolvePluginInstance
@rostislav-simonik rostislav-simonik linked a pull request Sep 7, 2024 that will close this issue
@Yurickh
Copy link

Yurickh commented Sep 13, 2024

Looks like it has become incompatible due to this change in the ResolvePluginInstance type in webpack:
webpack/webpack@cf891a4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants