Skip to content

Troubleshooting

Varity Team Core Contributors Updated May 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
    pipx 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

Varity deploys your app as-is and does not manage authentication. Sign-in is handled by whatever auth library or provider your app uses, so debug it the same way you would locally:

  1. Confirm the deploy finished successfully:

    Terminal window
    varitykit app status
  2. Check the browser console for errors on your live URL

  3. Confirm any secrets your auth provider needs (API keys, client IDs, callback URLs) are set as environment variables. See Environment Variables.

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

Check that:

  • You’re not accidentally clearing localStorage
  • Cookies are enabled in the browser
  1. Check package.json includes all of your app’s dependencies

  2. Clear and reinstall:

    Terminal window
    rm -rf node_modules
    npm install

Check network connectivity:

Terminal window
varitykit doctor

This will verify your connection to Varity’s infrastructure.

Common causes:

ErrorSolution
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

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: Varity on GitHub

  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