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 Adapter 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 Adapter 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?