Skip to main content

🔧 Installation Issues

Package Not Found

Problem: npm install @moongate/sdk fails with “package not found” Solutions:
  • Verify you have internet connection
  • Clear npm cache: npm cache clean --force
  • Try with yarn: yarn add @moongate/sdk
  • Check if you’re behind a corporate firewall
# Clear npm cache and retry
npm cache clean --force
rm -rf node_modules package-lock.json
npm install

TypeScript Errors

Problem: TypeScript compilation errors with Moongate SDK Solutions:
  • Ensure you’re using TypeScript 4.0+
  • Add type declarations if needed
  • Check your tsconfig.json configuration
tsconfig.json
{
  "compilerOptions": {
    "moduleResolution": "node",
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": true,
    "jsx": "react-jsx"
  }
}

🔑 API Key Issues

Invalid API Key

Problem: “Invalid API key” error when using the SDK Solutions:
  • Verify your API key is correct (no extra spaces)
  • Check if your account is approved in the partner dashboard
  • Ensure you’re using the right environment (dev/prod)
// Correct API key usage
<MoonGateProvider apiKey={process.env.NEXT_PUBLIC_MOONGATE_API_KEY}>
  {children}
</MoonGateProvider>

🆘 Need Help?

I