Var&V
Convex Community2y ago
97 replies
Var&

convex not compiling due to TS/Flow errors

Apologies if this not the right place to ask similar questions, but
npx convex dev
for me started to fail and I can't tell when and why. I tried to go back to older versions of dependencies but no luck.

Basically I'm getting a lot of TS/Flow errors when running the above command.
Errors  Files
     1  node_modules/@tamagui/types/types.d.ts:165
    16  node_modules/@tamagui/web/types/config.d.ts:27
    16  node_modules/@tamagui/web/types/hooks/useConfiguration.d.ts:34
     1  node_modules/@types/react/global.d.ts:153
    34  node_modules/react-native/types/modules/globals.d.ts:78
    12  node_modules/typescript/lib/lib.dom.d.ts:2289

and with --typecheck=disable flag I'm getting the following 2 errors
✘ [ERROR] Expected "from" but found "{"

    node_modules/react-native/Libraries/Utilities/codegenNativeComponent.js:13:12:
      13 │ import type {HostComponent} from '../../Libraries/Renderer/shims/ReactNativeTypes';
         │             ^
         ╵             from

✘ [ERROR] Unexpected "typeof"

    node_modules/react-native/index.js:14:7:
      14 │ import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
         ╵        

I researched and it seems like the Flow is failing the compile and I don't know how to address it.

Would appreciate a lot if someone can guid me on this.
Thanks.
Was this page helpful?