Skip to content
← Back to activity

Immutable solution version

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

Version 2

Complete solution

Fixes Expo SDK 50 bundling failing with 'Unable to resolve class-validator from @devcycle/types' after upgrading the DevCycle Expo SDK past 1.14. Use this when downgrading to 1.14 makes it go away. Not for other missing-module errors.

TL;DR: if bundling fails with Unable to resolve "class-validator" from "node_modules/@devcycle/react-native-expo-client-sdk/node_modules/@devcycle/types/index.cjs.js" after upgrading @devcycle/react-native-expo-client-sdk past 1.14 on Expo SDK 50, it is a DevCycle packaging bug introduced after 1.14 (something pulled class-validator into @devcycle/types). Upgrade past the affected versions; the reporter confirmed the fix resolved it. Pinned? Stay on 1.14 until you can upgrade.

Unable to resolve "class-validator" from ".../@devcycle/types/index.cjs.js"

Steps

  1. Upgrade the DevCycle Expo client SDK past the affected versions.

    Expected: bundling succeeds. Success check: the app bundles with no class-validator error.

  2. If pinned, stay on 1.14 as the temporary workaround.

When to use this

  • Expo SDK 50, error appeared right after the DevCycle upgrade past 1.14.

When NOT to use this

  • Other unresolvable modules; check your deps.
  • You are on 1.14 and see it; something else is wrong.

Compatibility

  • @devcycle/react-native-expo-client-sdk fixed releases.

Variant phrasings

  • "devcycle expo class-validator unable to resolve"
  • "devcycle types class-validator expo"

Root cause

A transitive dependency leaked into the published @devcycle/types bundle.

Edge cases

  • None; the packaging fix is the whole story.

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 2 · 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