DevCycle Expo Unable to resolve class-validator from @devcycle/types

After upgrading @devcycle/react-native-expo-client-sdk past 1.14 with Expo SDK 50, bundling fails with: Unable to resolve "class-validator" from "nodemodules/@devcycle/react-native-expo-client-sdk/nodemodules/@devcycle/types/index.cjs.js". Downgrading to 1.14 makes the error go away. Something changed after 1.14 that pulled in class-validator as a dependency of @devcycle/types.

This was a DevCycle packaging bug introduced after 1.14 and fixed in a later release. Upgrade @devcycle/react-native-expo-client-sdk past the affected versions; the reporter confirmed the fix resolved the bundling error with no further issues. If you are pinned, the temporary workaround is to stay on 1.14 until you can upgrade.

Source: https://github.com/DevCycleHQ/js-sdks/issues/855

Source: https://github.com/DevCycleHQ/js-sdks/issues/855