WatermelonDB icon indicating copy to clipboard operation
WatermelonDB copied to clipboard

React Native 0.78 + WatermelonDB Works in JavaScript but Not in TypeScript

Open Prashanth-K-25 opened this issue 1 year ago • 0 comments

I created a new React Native 0.78 project with TypeScript, but WatermelonDB does not work when using .tsx files with a tsconfig.json.

Observations:

WatermelonDB does not work in a .tsx file when TypeScript is enabled. Babel is updated, but the issue persists. If I delete tsconfig.json and use App.js instead of App.tsx, WatermelonDB works fine. Also, I'm unable to install other React Native versions—any downgrade or upgrade attempt fails.

Has anyone faced this issue?

Do I need additional config changes for WatermelonDB with TypeScript in React Native 0.78? Any solutions or workarounds would be really helpful!

Prashanth-K-25 avatar Feb 28 '25 06:02 Prashanth-K-25