Feature: Migrate to Typescript7 & AdonisJs7

This commit is contained in:
Igor Martyniuk
2026-07-17 08:05:15 +00:00
parent e98a1e85f0
commit bbdf4a3312
22 changed files with 3182 additions and 2324 deletions
+25
View File
@@ -0,0 +1,25 @@
# Troubleshooting
## `npm install` fails with `ERESOLVE`
The project uses TypeScript 7, but `typescript-eslint@8.64.0` declares support only for TypeScript versions below 6.1. npm therefore reports a peer-dependency conflict during a normal install.
The project runs ESLint through `scripts/eslint-with-typescript6.cjs`, which supplies a compatible TypeScript 6 version to ESLint. Until `typescript-eslint` officially supports TypeScript 7, install dependencies with:
```bash
npm install --force
```
For a clean, reproducible installation from `package-lock.json`, use:
```bash
npm ci --force
```
When adding or updating a dependency, include the same flag:
```bash
npm install <package-name> --force
```
Use the Node and npm versions declared by `.nvmrc` and `package.json`. The `--force` workaround can be removed once the installed `typescript-eslint` version supports TypeScript 7 and the TypeScript 6 ESLint shim is no longer needed.