-
Notifications
You must be signed in to change notification settings - Fork 294
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
Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set. #1146
Labels
bug
Something isn't working
Comments
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:
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"
}
} |
peps1
added a commit
to peps1/srrup
that referenced
this issue
Oct 20, 2024
* replace prompt-sync with @inquirer/prompts * apply linting and deno format fixes * fix logger typing errors * bump version to 2.2.0 Known Issue: ncc not compatible yet with tsconfig allowImportTsExtensions option, see: vercel/ncc#1146
+1 |
Ran into this today as well. @lohrm-stabl @ejkg did you guys ever find a workaround? |
@JonDum yep, using bun instead of ncc 😅 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I get the following error:
While I have both
"allowImportingTsExtensions": true,
andnoEmit: true
in my tsconfig.Full config:
The text was updated successfully, but these errors were encountered: