Skip to content

Commit 6b485dd

Browse files
authored
Downgrade eta to 3.5.0 to fix module resolution error (#1459)
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 589ba49 commit 6b485dd

File tree

3 files changed

+248
-257
lines changed

3 files changed

+248
-257
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"swagger-typescript-api": patch
3+
---
4+
5+
Downgrade eta from 4.0.1 to 3.5.0 to fix module resolution error.
6+
7+
After the upgrade to [email protected] in version 13.2.11, API generation started
8+
failing with `ERR_PACKAGE_PATH_NOT_EXPORTED: No "exports" main defined in
9+
eta/package.json`. This issue is caused by incorrect package export
10+
configuration in [email protected], which is tracked in the upstream repository.
11+
12+
Downgrading to [email protected] resolves the module resolution error whilst
13+
maintaining compatibility with the existing template system.
14+
15+
Fixes #1427.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"c12": "^3.3.0",
5454
"citty": "^0.1.6",
5555
"consola": "^3.4.2",
56-
"eta": "^4.0.1",
56+
"eta": "^3.5.0",
5757
"lodash": "^4.17.21",
5858
"nanoid": "^5.1.6",
5959
"openapi-types": "^12.1.3",

0 commit comments

Comments
 (0)