RJR
Convex Community3y ago
17 replies
RJ

Expected identifier but found "const"

I've been upgrading some packages and started seeing this error when running
npx convex dev
, but not when running tsc --project convex/tsconfig.json:

❯ npx convex dev       
⠦ Preparing Convex functions...
✘ [ERROR] Expected identifier but found "const"

    node_modules/@effect/data/src/Either.ts:506:19:
      506 │ export const all: <const I extends Iterable<Either<any, any>> | Record<string, Either<any, any>>>(
          ╵                    ~~~~~

✘ [ERROR] Expected identifier but found "const"

    node_modules/@effect/data/src/Option.ts:769:19:
      769 │ export const all: <const I extends Iterable<Option<any>> | Record<string, Option<any>>>(
          ╵                    ~~~~~


I don't see this when running the Remix dev server. I can probably do at least a little more troubleshooting on my end, but wanted to know if anyone had any easy hints, suggestions or suspicions just from this information.
Was this page helpful?