Open lohrm-stabl opened 9 months ago
I am also experiencing this same issue and I have a much simpler tsconfig.
{
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"emitDeclarationOnly": true,
"composite": true,
"esModuleInterop": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"outDir": "dist",
"rootDir": "../../",
"baseUrl": ".",
}
}
When I run:
$ pnpm build
I get this error:
ncc: Version 0.38.1
ncc: Compiling file index.js into ESM
ncc: Using typescript@5.4.4 (local user-provided)
Error: Module build failed (from ../../node_modules/.pnpm/@vercel+ncc@0.38.1/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js):
Error: TypeScript emitted no output for /path/to/entry/index.ts.
Here is a sample of my package.json as well.
{
"name": "package-namespace/a",
"main": "dist/index.js",
"type": "module",
"version": "0.0.0",
"scripts": {
"build": "ncc build index.ts --out dist --no-cache --debug"
},
"dependencies": {
"library-namespace/a": "workspace:*",
"library-namespace/b": "workspace:*",
"library-namespace/c": "workspace:*"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"@types/node": "^20.12.4",
"typescript": "^5.4.4"
}
}
Hello,
I get the following error:
While I have both
"allowImportingTsExtensions": true,
andnoEmit: true
in my tsconfig.Full config: