Skip to content

Troubleshooting

Varity Team Core Contributors Updated March 2026

Solutions to common issues when building with Varity.

The CLI is not installed or is not in your PATH.

  1. Install the CLI:

    Terminal window
    pip install varitykit
  2. Verify installation:

    Terminal window
    varitykit --version
  3. If still not found, check your Python path:

    Terminal window
    python -m varitykit --version

“ModuleNotFoundError: No module named ‘varitykit’”

Section titled ““ModuleNotFoundError: No module named ‘varitykit’””

Python dependencies are missing.

Terminal window
pip install --upgrade varitykit

If npm package installation fails:

Terminal window
# Clear npm cache
npm cache clean --force
# Delete node_modules and reinstall
rm -rf node_modules package-lock.json
npm install

Credentials are managed automatically by Varity. Run varitykit doctor to verify your setup. See Managed Credentials.

  1. Verify your build works locally:

    Terminal window
    npm run build
  2. Check for TypeScript errors:

    Terminal window
    npx tsc --noEmit
  3. Ensure all dependencies are installed:

    Terminal window
    npm install

Possible causes and solutions:

CauseSolution
Network timeoutTry again - temporary network issue
Large filesSplit into smaller chunks
Rate limitingWait a few minutes and retry
Credentials issueRun varitykit doctor to verify

Set your Auth App ID in environment variables:

.env.local
NEXT_PUBLIC_PRIVY_APP_ID=your_app_id

Or use Varity development credentials (the SDK will use defaults if none provided).

  1. Verify PrivyStack wraps your application:

    <PrivyStack appId={process.env.NEXT_PUBLIC_PRIVY_APP_ID}>
    <App />
    </PrivyStack>
  2. Check browser console for errors

  3. Ensure environment variables are loaded (restart dev server)

Your domain needs to be allowed for authentication. Contact support@varity.so to allow your domain, or include localhost for local development.

Check that:

  • PrivyStack is at the root of your app
  • You’re not accidentally clearing localStorage
  • Cookies are enabled in the browser

Ensure you’re using compatible TypeScript version:

package.json
{
"devDependencies": {
"typescript": "^5.0.0"
}
}

“Cannot find module ‘@varity-labs/sdk’”

Section titled ““Cannot find module ‘@varity-labs/sdk’””
  1. Install packages:

    Terminal window
    npm install @varity-labs/sdk @varity-labs/ui-kit @varity-labs/types
  2. Check package.json includes the dependencies

  3. Clear and reinstall:

    Terminal window
    rm -rf node_modules
    npm install

Varity UI Kit requires React 18+:

package.json
{
"dependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0"
}
}

Check network connectivity:

Terminal window
varitykit doctor

This will verify your connection to Varity’s infrastructure.

Common causes:

ErrorSolution
Insufficient fundsOperations are free — contact support
Service not foundVerify configuration is correct
Invalid parametersCheck function arguments
  1. Enable production mode:

    Terminal window
    npm run build && npm start
  2. Check bundle size:

    Terminal window
    npm run analyze
  3. Verify you’re using tree-shaking:

    // Good - tree-shakeable
    import { PrivyStack } from '@varity-labs/ui-kit';
    // Avoid - imports entire package
    import * as VarityUI from '@varity-labs/ui-kit';

Run the doctor command to diagnose:

Terminal window
varitykit doctor

Common failures and fixes:

CheckFix
Environment variablesCreate .env file with required vars
Network connectivityCheck internet connection
Project structureEnsure package.json exists
DependenciesRun npm install

Deployments are stored locally. Check:

Terminal window
ls ~/.varitykit/deployments/

If empty, no deployments have been made from this machine.

If you’re still stuck:

  1. Search existing issues: GitHub Issues

  2. Ask the community: Discord

  3. Open a new issue with:

    • Error message (full stack trace)
    • Steps to reproduce
    • varitykit doctor output
    • OS and Node.js version
  4. Email support: support@varity.so