Skip to content

fix(node): set correct compilerOptions for Nest applications#29725

Merged
jaysoo merged 1 commit intomasterfrom
fix/nest-ts-setup
Jan 23, 2025
Merged

fix(node): set correct compilerOptions for Nest applications#29725
jaysoo merged 1 commit intomasterfrom
fix/nest-ts-setup

Conversation

@jaysoo
Copy link
Copy Markdown
Member

@jaysoo jaysoo commented Jan 22, 2025

This PR fixes and issue where generating Nest app in the new TS setup results in a build error due to missing experimentalDecorators option in tsconfig. Decorators are required for Nest to work, but we do not set it anymore in tsconfig.base.json by default.

Current Behavior

Nest apps are broken

Expected Behavior

Nest apps work

Related Issue(s)

Fixes #

@jaysoo jaysoo requested a review from a team as a code owner January 22, 2025 23:12
@jaysoo jaysoo requested a review from ndcunningham January 22, 2025 23:12
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jan 23, 2025 4:15am

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Jan 22, 2025

View your CI Pipeline Execution ↗ for commit 35c1da4.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 2m 10s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 20s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base=12360... ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation --no-dte ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-23 04:21:04 UTC

@jaysoo jaysoo force-pushed the fix/nest-ts-setup branch from 9f8a9b5 to 6cc54cd Compare January 22, 2025 23:34
@jaysoo jaysoo force-pushed the fix/nest-ts-setup branch 3 times, most recently from c755584 to a0d8cb4 Compare January 23, 2025 03:39
@jaysoo jaysoo force-pushed the fix/nest-ts-setup branch from a0d8cb4 to 35c1da4 Compare January 23, 2025 04:13
@jaysoo jaysoo enabled auto-merge (squash) January 23, 2025 04:13
@jaysoo jaysoo merged commit a0cfe88 into master Jan 23, 2025
@jaysoo jaysoo deleted the fix/nest-ts-setup branch January 23, 2025 04:20
FrozenPandaz pushed a commit that referenced this pull request Jan 23, 2025
This PR fixes and issue where generating Nest app in the new TS setup
results in a build error due to missing `experimentalDecorators` option
in tsconfig. Decorators are required for Nest to work, but we do not set
it anymore in `tsconfig.base.json` by default.

## Current Behavior
Nest apps are broken

## Expected Behavior
Nest apps work

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit a0cfe88)
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants