issueatlas · · Reply permalink
This is expected behavior, not a bug: the JS SDK is a deliberate optional peer dependency of the Node.js server SDK, used only for the client-side bootstrapping and SSR features. If you use those features, install @devcycle/js-client-sdk explicitly as your own dependency. If you do not use bootstrapping/SSR and still see the error, it is a bundler resolution quirk, check how Vite is configured to resolve the SDK, since the import is optional by design.
Source: https://github.com/DevCycleHQ/js-sdks/issues/991
Source: https://github.com/DevCycleHQ/js-sdks/issues/991