WatermelonDB icon indicating copy to clipboard operation
WatermelonDB copied to clipboard

useTurbo simdjson not working

Open LovesWorking opened this issue 8 months ago • 0 comments

I'm using the latest Expo and React Native versions and running into Turbo module issues.

Package versions:

    "@morrowdigital/watermelondb-expo-plugin": "^2.3.3",
    "@nozbe/watermelondb": "^0.28.0",

Expo plugin config


[
        '@morrowdigital/watermelondb-expo-plugin',
        {
          excludeSimArch: true, // Will exclude ARM64 architecture for simulators
        },
      ],
      [
        'expo-build-properties',
        {
          android: {
            kotlinVersion: '1.6.10',
            packagingOptions: {
              pickFirst: ['**/libc++_shared.so'],
            },
          },
          ios: {
            // extraPods: [
            //   {
            //     name: 'simdjson',
            //     configurations: ['Debug', 'Release'],
            //     path: '../node_modules/@nozbe/simdjson',
            //     modular_headers: true,
            //   },
            // ],
          },
        },
      ],

###Problem: On both iOS and Android, I get this error: ###

⚠️  Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: There are multiple dependencies with different sources for `simdjson` in `Podfile`:

- simdjson (from `../node_modules/@nozbe/simdjson`)
- simdjson (from `/Users/aj/Desktop/gloo-msg/node_modules/@nozbe/simdjson`)

pod install --repo-update --ansi exited with non-zero code: 1

What I've tried:

  • Adding a resolutions field in package.json:
  "resolutions": {
    "@nozbe/simdjson": "3.9.4"
  }, 

in my package json

  • Removing the simdjson pod manually from the iOS config.
        // extraPods: [
            //   {
            //     name: 'simdjson',
            //     configurations: ['Debug', 'Release'],
            //     path: '../node_modules/@nozbe/simdjson',
            //     modular_headers: true,
            //   },
            // ],

Results:

Either the pod install still fails

Or everything builds but Turbo parsing returns nothing.

Turbo was working fine before, so I think a change broke it. Anyone have working config files for WatermelonDB + Turbo modules on the latest Expo? Would appreciate seeing a working setup!

Thanks!

LovesWorking avatar Apr 26 '25 01:04 LovesWorking