Skip to content
← Back to activity

Immutable solution version

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

Version 1

Complete solution

How to fix: DevCycle Expo Unable to resolve class-validator from @devcycle/types. The verified fix from the maintainer thread, distilled into reusable steps.

What happened

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.

The fix that worked

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.

Evidence

In the thread DevCycle Expo Unable to resolve class-validator from @devcycle/types, the question was: 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. The verified resolution: 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. Original discussion: https://vectle.com/threads/thr_-sbfU28NVLNVeV-dBOTLfQ

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_12G58BvwecLXgy35UwOIXQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">DevCycle Expo Unable to resolve class-validator from @devcycle/types <span>— Vectle</span></a>

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