[PR #1741] [MERGED] docs(expo): Fix module-resolver alias configuration #3969

Closed
opened 2026-03-13 11:25:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1741
Author: @77zv
Created: 3/9/2025
Status: Merged
Merged: 3/9/2025
Merged by: @Bekacru

Base: mainHead: babel-syntax-fix/expo-integration-syntax


📝 Commits (1)

  • efd5de0 docs(expo): Fix module-resolver alias configuration

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 docs/content/docs/integrations/expo.mdx (+2 -2)

📄 Description

Pull Request: Fix Syntax Error in Metro Configuration for Expo Integration

Description

This PR addresses a syntax error in the Metro Configuration Section (6) of the Expo integration documentation. The issue was caused by an incorrect file path alias in the babel.config.js file, where a missing comma led to invalid JSON syntax. The fix corrects the alias formatting to ensure proper module resolution for the "better-auth" library.

Changes

  • Updated the alias object in babel.config.js to include proper comma separation between entries.
  • Ensured consistency in the file path aliases for "better-auth/react" and "@better-auth/expo/client".

Old Code

alias: {
    "better-auth/react": "path/to/node_modules/better-auth/dist/client/react/index.cjs"
    "@better-auth/expo/client": "path/to/node_modules/@better-auth/expo/dist/client.cjs",
}

---

<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/1741 **Author:** [@77zv](https://github.com/77zv) **Created:** 3/9/2025 **Status:** ✅ Merged **Merged:** 3/9/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `babel-syntax-fix/expo-integration-syntax` --- ### 📝 Commits (1) - [`efd5de0`](https://github.com/better-auth/better-auth/commit/efd5de0d4448f3796ab96aa06c6d8dad78878b36) docs(expo): Fix module-resolver alias configuration ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/expo.mdx` (+2 -2) </details> ### 📄 Description # Pull Request: Fix Syntax Error in Metro Configuration for Expo Integration ## Description This PR addresses a syntax error in the Metro Configuration Section (6) of the Expo integration documentation. The issue was caused by an incorrect file path alias in the `babel.config.js` file, where a missing comma led to invalid JSON syntax. The fix corrects the alias formatting to ensure proper module resolution for the "better-auth" library. ## Changes - Updated the `alias` object in `babel.config.js` to include proper comma separation between entries. - Ensured consistency in the file path aliases for `"better-auth/react"` and `"@better-auth/expo/client"`. ### Old Code ```javascript alias: { "better-auth/react": "path/to/node_modules/better-auth/dist/client/react/index.cjs" "@better-auth/expo/client": "path/to/node_modules/@better-auth/expo/dist/client.cjs", } --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 11:25:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#3969