Skip to content

8.0.3 breaks project with: Unable to require .d.ts file #797

Description

@hakan0xFF

Hey, today I upgraded the ts-node package to the newest version 8.0.3 and it now throws an exception:

TypeError: Unable to require `.d.ts` file.
This is usually the result of a faulty configuration or import. Make sure there is a `.js`, `.json` or another executable extension and loader (attached before `ts-node`) available alongside `graphql.schema.ts`.
at getOutput (backend/server/node_modules/ts-node/src/index.ts:343:15)
at Object.compile (backend/server/node_modules/ts-node/src/index.ts:368:11)
at Module.m._compile (backend/server/node_modules/ts-node/src/index.ts:414:43)
at Module._extensions..js (internal/modules/cjs/loader.js:745:10)
at Object.require.extensions.(anonymous function) [as .ts] (backend/server/node_modules/ts-node/src/index.ts:417:12)
at Module.load (internal/modules/cjs/loader.js:626:32)
at tryModuleLoad (internal/modules/cjs/loader.js:566:12)
at Function.Module._load (internal/modules/cjs/loader.js:558:3)
at Module.require (internal/modules/cjs/loader.js:663:17)
at require (internal/modules/cjs/helpers.js:20:18)

The version 8.0.2 works. I had no time to find the exact cause.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions