这是indexloc提供的服务,不要输入任何密码
Skip to content

TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function. Received an instance of Object at promisify (node:internal/util:423:3) \node_modules\@turbo\gen\node_modules\del\index.js:13:17) #10681

@MartinaPN

Description

@MartinaPN

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

"@turbo/gen": "^2.5.4"

Which canary version will you have in your reproduction?

$ npm list turbo tms-api@1.0.0 C:\Users\ └── turbo@2.5.4

Environment information


Expected behavior

should not throw an error

Actual behavior

turbo 2.5.4

node:internal/errors:540
throw error;
^

turbo 2.5.4

node:internal/errors:540
throw error;
^

TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function. Received an instance of Object
at promisify (node:internal/util:423:3)
at Object. (\node_modules@turbo\gen\node_modules\del\index.js:13:17)
at Module._compile (node:internal/modules/cjs/loader:1562:14)
at Object..js (node:internal/modules/cjs/loader:1699:10)
at Module.load (node:internal/modules/cjs/loader:1313:32)
at Function._load (node:internal/modules/cjs/loader:1123:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
at Module.require (node:internal/modules/cjs/loader:1335:12)
at require (node:internal/modules/helpers:136:16) {
code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v22.13.1

To Reproduce

Install vite 7.0.4 with "@turbo/gen": "^2.5.4",

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions