Skip to content
← Back to activity

Public problem

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

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

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.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

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