vercel/ncc

Typescript 7 support

Open

#1,336 创建于 2026年7月10日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (273 fork)batch import
help wanted

仓库指标

Star
 (8,841 star)
PR 合并指标
 (平均合并 31天 15小时) (30 天内合并 7 个 PR)

描述

https://github.com/Cyberbeni/install-swift-tool

After running yarn upgrade --latest and npm run build (which runs ncc build --minify --out dist src/main.ts) I get the following error:

ncc: Version 0.44.1
ncc: Compiling file index.js into ESM
ncc: Using typescript@7.0.2 (local user-provided)
Error: Module build failed (from ./node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js):
TypeError: Cannot read properties of undefined (reading 'fileExists')
    at findConfigFile (/workspace/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache.js:38:11157)
    at getConfigFile (/workspace/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache.js:38:10396)
    at successfulTypeScriptInstance (/workspace/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache.js:38:24589)
    at getTypeScriptInstance (/workspace/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache.js:38:23999)
    at Object.loader (/workspace/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache.js:38:13233)
    at /workspace/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:29:2008020
    at /workspace/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:29:393133
    at _done (eval at create (/workspace/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:27:140521), <anonymous>:9:1)
    at eval (eval at create (/workspace/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:27:140521), <anonymous>:34:22)

贡献者指南