Commit ea39239
committed
fix(api): resolve Nx build errors, update project configs, and clean cache
📜 Changelog
1️⃣ Dependency Updates
Updated and added necessary Nx packages:
Replaced @nx/node executors with @nx/js:tsc and @nx/js:node.
Installed missing dependencies like ts-loader.
Verified and fixed versions for typescript, @typescript-eslint/*, and other related packages.
Ensured compatibility for all @nx/* packages in resolutions.
2️⃣ Project Configuration Changes
project.json:
Replaced the old @nx/webpack:webpack executor with @nx/js:tsc for the build target.
Updated the serve target to use @nx/js:node.
Removed unused webpack-related options (e.g., target, compiler).
Cleaned up build configurations for better compatibility with the latest Nx version.
tsconfig.app.json:
Fixed trailing comma in compiler options.
Updated include and exclude patterns for better TypeScript coverage.
tsconfig.base.json:
Verified and retained proper paths mapping for libraries.
Ensured include covers both apps/**/*.ts and libs/**/*.ts.
tsconfig.json (API):
Configured references properly to ensure TypeScript incremental builds.
Kept it minimal and aligned with Nx structure.
tsconfig.tools.json:
Validated rootDir, outDir, and module settings for scripts.
3️⃣ Error Resolution
Fixed @nx/node:node executor error by migrating to @nx/js:node.
Fixed ts-loader missing dependency error by installing it locally.
Resolved rootDir errors in TypeScript by adjusting configs and removing incorrect libs inclusion from tsconfig.app.json.
Cleared Nx and TypeScript caches to eliminate stale build artifacts:
rm -rf dist/
rm -rf node_modules/.cache
4️⃣ Final Verification
Successfully built and served the API app using nx run api:build and nx serve api.
Confirmed that TypeScript references and library imports from libs/ resolved correctly.
Verified no stale cache or residual compilation issues after cleanup.
✅ Outcome: API project now builds and serves without errors using Nx, with clean and maintainable configuration files.
Would you like me to generate this as a conventional commit with BREAKING CHANGE or feat/chore sections for a proper semantic version changelog (so it works well with tools like standard-version or release-please)?1 parent 14819c8 commit ea39239
File tree
256 files changed
+9873
-10429
lines changed- apps
- api-e2e
- api
- sdk-e2e
- web-e2e
- web
- libs
- api
- account
- data-access
- feature
- airdrop
- data-access
- feature
- util
- app
- data-access
- feature
- auth
- data-access
- feature
- util
- cluster
- data-access
- feature
- util
- config
- data-access
- feature
- core
- data-access
- src/lib/cache
- feature
- util
- cron/data-access
- kinetic
- data-access
- feature
- util
- queue
- data-access
- feature
- solana/data-access
- transaction
- data-access
- feature
- user
- data-access
- feature
- wallet
- data-access
- feature
- webhook
- data-access
- feature
- dev/jest
- src/executors/build
- keypair
- src/lib
- sdk
- src
- solana
- src/lib
- helpers
- kin
- web
- admin
- feature
- ui
- app
- data-access
- feature
- ui
- auth
- data-access
- feature
- ui
- dev/feature
- keypair
- data-access
- feature
- ui
- server
- data-access
- feature
- ui
- shell
- data-access
- feature
- toolbox
- data-access
- feature
- ui
- ui
- address
- alert
- app-avatar
- card
- container
- copy
- form
- identicon
- layout
- link
- loader
- page
- table
- tooltip
- util/sdk
- tools/generators
- api-feature
- lib
- helpers
- react-feature
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
256 files changed
+9873
-10429
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 13 | + | |
29 | 14 | | |
30 | 15 | | |
31 | 16 | | |
32 | | - | |
| 17 | + | |
33 | 18 | | |
34 | | - | |
| 19 | + | |
| 20 | + | |
35 | 21 | | |
36 | 22 | | |
| 23 | + | |
37 | 24 | | |
38 | | - | |
| 25 | + | |
39 | 26 | | |
40 | 27 | | |
41 | 28 | | |
42 | 29 | | |
43 | 30 | | |
44 | 31 | | |
45 | | - | |
| 32 | + | |
46 | 33 | | |
47 | 34 | | |
48 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments