convex-js icon indicating copy to clipboard operation
convex-js copied to clipboard

`npm run lint` fails for new project created with `npm create convex` and default options

Open adamjcooper opened this issue 5 months ago • 0 comments

Thanks for Convex! Here's a small bit of DX friction you might want to know about for new customers:

After creating a new project with npm create convex with the default (first) options of React (Vite) and Convex Auth, the npm run lint script fails due to a parsing/configuration error:

./convex/auth.config.ts
  0:0  error  Parsing error: "parserOptions.project" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided project(s): convex/auth.config.ts

✖ 1 problem (1 error, 0 warnings)

Other combinations of client and auth do not seem to have this problem.

Full reproduction

Context

~
❯ node -v
v22.16.0

~
❯ npm -v
11.4.1

~
❯ npm ls -g
/Users/adam/.local/share/mise/installs/node/22.16.0/lib
├── [email protected]
├── [email protected]
└── [email protected]

~
❯ npm ls
/Users/adam
└── (empty)

~
❯ npm view convex version
1.24.8

Reproduction

~
❯ npm create convex

> npx
> "create-convex"

✔ Project name: … test
✔ Choose a client: › React (Vite)
✔ Choose user authentication: › Convex Auth

Setting up...
✔ Latest cursor rules added to project.


added 564 packages in 20s

✔ Done. Now run:

  cd test
  npm run dev


~ 27s
❯ cd test

~/test
❯ npm run lint

> [email protected] lint
> tsc && eslint .  --ext ts,tsx --report-unused-disable-directives --max-warnings 0


/Users/adam/test/convex/auth.config.ts
  0:0  error  Parsing error: "parserOptions.project" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided project(s): convex/auth.config.ts

✖ 1 problem (1 error, 0 warnings)

adamjcooper avatar Jun 11 '25 14:06 adamjcooper