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

Cannot find namespace 'debug' in 2.29.0 #128

Closed
millsp opened this issue Aug 10, 2021 · 3 comments · Fixed by prisma/prisma#8720
Closed

Cannot find namespace 'debug' in 2.29.0 #128

millsp opened this issue Aug 10, 2021 · 3 comments · Fixed by prisma/prisma#8720
Assignees
Labels
tech/typescript Issue for tech TypeScript.
Milestone

Comments

@millsp
Copy link
Member

millsp commented Aug 10, 2021

+ pnpm recursive run build
Scope: all 5 workspace projects
packages/engines-version build$ tsc -d
packages/get-platform build$ tsc -d
packages/engines-version build: Done
packages/get-platform build: Done
packages/fetch-engine build$ tsc -d
Error: packages/fetch-engine build: ../../node_modules/.pnpm/@prisma+debug@2.29.0/node_modules/@prisma/debug/dist/index.d.ts(2,44): error TS2503: Cannot find namespace 'debug'.
packages/fetch-engine build: Failed
undefined
/home/runner/work/engines-wrapper/engines-wrapper/packages/fetch-engine:
 ERROR  @prisma/fetch-engine@2.29.0-34.1be4cd60b89afa04b192acb1ef47758a39810f3a build: `tsc -d`
Exit status 2
@millsp millsp added the bug label Aug 10, 2021
@millsp millsp self-assigned this Aug 10, 2021
@janpio janpio added this to the 2.30.0 milestone Aug 10, 2021
@millsp millsp added the tech/typescript Issue for tech TypeScript. label Aug 10, 2021
@Jolg42
Copy link
Member

Jolg42 commented Aug 11, 2021

after fixing we will be able to merge #127

@Jolg42
Copy link
Member

Jolg42 commented Aug 11, 2021

Before (2.28) https://unpkg.com/browse/@prisma/debug@2.28.0/dist/index.d.ts

import DebugLib from 'debug';
declare function Debug(namespace: string): DebugLib.Debugger;
declare namespace Debug {
    var enable: (namespace: string) => void;
    var enabled: (namespace: string) => boolean;
}
export default Debug;
export { Debug };
export declare type Debugger = DebugLib.Debugger;
export declare function getLogs(numChars?: number): string;

Now (2.29) https://unpkg.com/browse/@prisma/debug@2.29.0/dist/index.d.ts

import 'debug';
declare function Debug(namespace: string): debug.Debugger;
declare namespace Debug {
    var enable: (namespace: string) => void;
    var enabled: (namespace: string) => boolean;
}
export default Debug;
export { Debug };
export declare function getLogs(numChars?: number): string;

@Jolg42 Jolg42 changed the title Cannot find namespace 'debug' Cannot find namespace 'debug' in 2.29.0 Aug 12, 2021
@Jolg42
Copy link
Member

Jolg42 commented Aug 13, 2021

Fix now available in the 2.29.1 patch just released a minute ago.

@Jolg42 Jolg42 closed this as completed Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech/typescript Issue for tech TypeScript.
Projects
None yet
3 participants