[GH-ISSUE #5954] 客户端引用authClient方法 报错Failed to fetch dynamically imported module: http://localhost:5173/src/routes/index.tsx?tsr-split=component #10385

Closed
opened 2026-04-13 06:29:41 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @Rvvvv1 on GitHub (Nov 13, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/5954

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

后端hono 使用 "better-auth": "^1.3.9", "hono": "^4.10.2", 前端使用vite 构建tanstack-router模版 里面使用authClient方法报错 控制台显示bun dev
$ concurrently "bun client" "bun server"
[0] $ cd client && bun dev
[1] $ bun run --hot server/index.ts
[0] $ vite --port 5173
[1] Started development server: http://localhost:3000
[0]
[0] VITE v7.2.2 ready in 377 ms
[0]
[0] ➜ Local: http://localhost:5173/
[0] ➜ Network: use --host to expose
[0] ✘ [ERROR] Could not resolve "react"
[0]
[0] ../node_modules/better-auth/dist/client/react/index.mjs:3:58:
[0] 3 │ import { useRef, useCallback, useSyncExternalStore } from 'react';
[0] ╵ ~~~~~~~
[0]
[0] You can mark the path "react" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
[0]
[0] 13:42:09 [vite] (client) error while updating dependencies:
[0] Error: Error during dependency optimization:
[0]
[0] ✘ [ERROR] Could not resolve "react"
[0]
[0] ../node_modules/better-auth/dist/client/react/index.mjs:3:58:
[0] 3 │ import { useRef, useCallback, useSyncExternalStore } from 'react';
[0] ╵ ~~~~~~~
[0]
[0] You can mark the path "react" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
[0]
[0]
[0] at failureErrorWithLog (/Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1467:15)
[0] at /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:926:25
[0] at /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1345:9
[0] at process.processTicksAndRejections (node:internal/process/task_queues:105:5)。

vite配置如下
import { defineConfig } from "vite";
import { devtools } from "@tanstack/devtools-vite";
import viteReact from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";

import { tanstackRouter } from "@tanstack/router-plugin/vite";
import { fileURLToPath, URL } from "node:url";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
devtools(),
tanstackRouter({
target: "react",
autoCodeSplitting: true,
}),
viteReact(),
tailwindcss(),
],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
proxy: {
"/api": {
target: "http://localhost:3000",
changeOrigin: true,
},
},
},
});

使用 "@biomejs/biome": "2.2.4",
"@tanstack/devtools-vite": "^0.3.11",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.2.0",
"@types/node": "^22.10.2",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@vitejs/plugin-react": "^5.0.4",
"jsdom": "^27.0.0",
"typescript": "^5.7.2",
"vite": "^7.1.7",
"vitest": "^3.0.5",
"web-vitals": "^5.1.0"

Current vs. Expected behavior

只要当我在前端项目里面下载了better-auth 这些报错就消失了

What version of Better Auth are you using?

1.3.34

System info

"vite": "^7.1.7",
  "better-auth": "^1.3.34",

Which area(s) are affected? (Select all that apply)

Client

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
});

Additional context

No response

Originally created by @Rvvvv1 on GitHub (Nov 13, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/5954 ### Is this suited for github? - [ ] Yes, this is suited for github ### To Reproduce 后端hono 使用 "better-auth": "^1.3.9", "hono": "^4.10.2", 前端使用vite 构建tanstack-router模版 里面使用authClient方法报错 控制台显示bun dev $ concurrently "bun client" "bun server" [0] $ cd client && bun dev [1] $ bun run --hot server/index.ts [0] $ vite --port 5173 [1] Started development server: http://localhost:3000 [0] [0] VITE v7.2.2 ready in 377 ms [0] [0] ➜ Local: http://localhost:5173/ [0] ➜ Network: use --host to expose [0] ✘ [ERROR] Could not resolve "react" [0] [0] ../node_modules/better-auth/dist/client/react/index.mjs:3:58: [0] 3 │ import { useRef, useCallback, useSyncExternalStore } from 'react'; [0] ╵ ~~~~~~~ [0] [0] You can mark the path "react" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. [0] [0] 13:42:09 [vite] (client) error while updating dependencies: [0] Error: Error during dependency optimization: [0] [0] ✘ [ERROR] Could not resolve "react" [0] [0] ../node_modules/better-auth/dist/client/react/index.mjs:3:58: [0] 3 │ import { useRef, useCallback, useSyncExternalStore } from 'react'; [0] ╵ ~~~~~~~ [0] [0] You can mark the path "react" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. [0] [0] [0] at failureErrorWithLog (/Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1467:15) [0] at /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:926:25 [0] at /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1345:9 [0] at process.processTicksAndRejections (node:internal/process/task_queues:105:5)。 vite配置如下 import { defineConfig } from "vite"; import { devtools } from "@tanstack/devtools-vite"; import viteReact from "@vitejs/plugin-react"; import tailwindcss from "@tailwindcss/vite"; import { tanstackRouter } from "@tanstack/router-plugin/vite"; import { fileURLToPath, URL } from "node:url"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [ devtools(), tanstackRouter({ target: "react", autoCodeSplitting: true, }), viteReact(), tailwindcss(), ], resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)), }, }, server: { proxy: { "/api": { target: "http://localhost:3000", changeOrigin: true, }, }, }, }); 使用 "@biomejs/biome": "2.2.4", "@tanstack/devtools-vite": "^0.3.11", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.2.0", "@types/node": "^22.10.2", "@types/react": "^19.2.0", "@types/react-dom": "^19.2.0", "@vitejs/plugin-react": "^5.0.4", "jsdom": "^27.0.0", "typescript": "^5.7.2", "vite": "^7.1.7", "vitest": "^3.0.5", "web-vitals": "^5.1.0" ### Current vs. Expected behavior 只要当我在前端项目里面下载了better-auth 这些报错就消失了 ### What version of Better Auth are you using? 1.3.34 ### System info ```bash "vite": "^7.1.7", "better-auth": "^1.3.34", ``` ### Which area(s) are affected? (Select all that apply) Client ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 06:29:41 -05:00
Author
Owner

@better-auth-agent[bot] commented on GitHub (Nov 13, 2025):

It appears your bundler is failing to resolve React because the Better Auth client expects React to be available as a peer dependency. In your Vite-powered project, even though you’re using Tanstack Router and other dependencies, you’ll need to install both react and react-dom so that the client module for Better Auth can import the hooks it depends on. For example, try running:

  npm install react react-dom

Then, restart your dev server. This should allow Vite to properly resolve the import from Better Auth’s client module. Also, you might consider checking your Vite configuration to ensure there are no conflicting alias settings or externalized modules that might inadvertently exclude React from the build [1].

Tag @better-auth-agent if you would like an answer from the Agent. Do you have any additional details or configuration aspects you’d like to go over?

DiagramDiscordGitHub

Diagram Join Star

<!-- gh-comment-id:3525583490 --> @better-auth-agent[bot] commented on GitHub (Nov 13, 2025): It appears your bundler is failing to resolve React because the Better Auth client expects React to be available as a peer dependency. In your Vite-powered project, even though you’re using Tanstack Router and other dependencies, you’ll need to install both react and react-dom so that the client module for Better Auth can import the hooks it depends on. For example, try running:   npm install react react-dom Then, restart your dev server. This should allow Vite to properly resolve the import from Better Auth’s client module. Also, you might consider checking your Vite configuration to ensure there are no conflicting alias settings or externalized modules that might inadvertently exclude React from the build [[1]](https://github.com/better-auth/better-auth/issues/4125). Tag @better-auth-agent if you would like an answer from the Agent. Do you have any additional details or configuration aspects you’d like to go over? <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) • [Discord](https://discord.gg/better-auth) • [GitHub](https://github.com/better-auth/better-auth) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/better-auth) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/better-auth/better-auth)
Author
Owner

@Rvvvv1 commented on GitHub (Nov 13, 2025):

❯ bun add react react-dom
bun add v1.3.0 (b0a6feca)

installed react@19.2.0
installed react-dom@19.2.0
❯ bun dev
$ concurrently "bun client" "bun server"
[0] $ cd client && bun dev
[1] $ bun run --hot server/index.ts
[0] $ vite --port 5173
[1] Started development server: http://localhost:3000
[0]
[0] VITE v7.2.2 ready in 351 ms
[0]
[0] ➜ Local: http://localhost:5173/
[0] ➜ Network: use --host to expose
[0] ✘ [ERROR] Could not resolve "react"
[0]
[0] ../node_modules/better-auth/dist/client/react/index.mjs:3:58:
[0] 3 │ import { useRef, useCallback, useSyncExternalStore } from 'react';
[0] ╵ ~~~~~~~
[0]
[0] You can mark the path "react" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
[0]
[0] /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1467
[0] let error = new Error(text);
[0] ^
[0]
[0] Error: Error during dependency optimization:
[0]
[0] ✘ [ERROR] Could not resolve "react"
[0]
[0] ../node_modules/better-auth/dist/client/react/index.mjs:3:58:
[0] 3 │ import { useRef, useCallback, useSyncExternalStore } from 'react';
[0] ╵ ~~~~~~~
[0]
[0] You can mark the path "react" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
[0]
[0]
[0] at failureErrorWithLog (/Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1467:15)
[0] at /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:926:25
[0] at /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1345:9
[0] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
[0] errors: [Getter/Setter],
[0] warnings: [Getter/Setter]
[0] }
[0]
[0] Node.js v24.9.0
[0] error: script "dev" exited with code 1
[0] error: script "client" exited with code 1
[0] bun client exited with code 1

并没有解决 @better-auth-agent

<!-- gh-comment-id:3525594533 --> @Rvvvv1 commented on GitHub (Nov 13, 2025): ❯ bun add react react-dom bun add v1.3.0 (b0a6feca) installed react@19.2.0 installed react-dom@19.2.0 ❯ bun dev $ concurrently "bun client" "bun server" [0] $ cd client && bun dev [1] $ bun run --hot server/index.ts [0] $ vite --port 5173 [1] Started development server: http://localhost:3000 [0] [0] VITE v7.2.2 ready in 351 ms [0] [0] ➜ Local: http://localhost:5173/ [0] ➜ Network: use --host to expose [0] ✘ [ERROR] Could not resolve "react" [0] [0] ../node_modules/better-auth/dist/client/react/index.mjs:3:58: [0] 3 │ import { useRef, useCallback, useSyncExternalStore } from 'react'; [0] ╵ ~~~~~~~ [0] [0] You can mark the path "react" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. [0] [0] /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1467 [0] let error = new Error(text); [0] ^ [0] [0] Error: Error during dependency optimization: [0] [0] ✘ [ERROR] Could not resolve "react" [0] [0] ../node_modules/better-auth/dist/client/react/index.mjs:3:58: [0] 3 │ import { useRef, useCallback, useSyncExternalStore } from 'react'; [0] ╵ ~~~~~~~ [0] [0] You can mark the path "react" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. [0] [0] [0] at failureErrorWithLog (/Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1467:15) [0] at /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:926:25 [0] at /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1345:9 [0] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { [0] errors: [Getter/Setter], [0] warnings: [Getter/Setter] [0] } [0] [0] Node.js v24.9.0 [0] error: script "dev" exited with code 1 [0] error: script "client" exited with code 1 [0] bun client exited with code 1 并没有解决 @better-auth-agent
Author
Owner

@better-auth-agent[bot] commented on GitHub (Nov 13, 2025):

Hi there! It looks like your bundler is having trouble resolving the "react" module when importing Better Auth’s client/react entry. This usually happens when the bundler (esbuild/Vite in your case) isn’t correctly handling the peer dependency. Here are a few steps you could try:

• First, double-check that react and react-dom are correctly installed in your front-end project and are listed as dependencies rather than only devDependencies. This ensures they’re available during bundling [1].
• In your vite.config.js, try adding a resolve.dedupe or optimizeDeps configuration to force Vite to properly consolidate your react dependency. For example, you could add:
  resolve: { dedupe: ["react"] }
  optimizeDeps: { include: ["react", "react-dom"] }
This helps Vite avoid multiple copies or mis-resolution of react [2].
• Alternatively, you might mark "react" as external in your Vite config’s optimizeDeps.external options (as your error message suggests) so it isn’t bundled by esbuild.
• Since you’re using Bun along with Vite, also verify that Bun’s module resolution isn’t interfering—sometimes switching the bundler’s configuration or updating to a more recent version can help.

Do these steps resolve your issue? Tag @better-auth-agent if you would like an answer from the Agent.

DiagramDiscordGitHub

Diagram Join Star

<!-- gh-comment-id:3525597405 --> @better-auth-agent[bot] commented on GitHub (Nov 13, 2025): Hi there! It looks like your bundler is having trouble resolving the "react" module when importing Better Auth’s client/react entry. This usually happens when the bundler (esbuild/Vite in your case) isn’t correctly handling the peer dependency. Here are a few steps you could try: • First, double-check that react and react-dom are correctly installed in your front-end project and are listed as dependencies rather than only devDependencies. This ensures they’re available during bundling [[1]](https://github.com/better-auth/better-auth/issues/4125). • In your vite.config.js, try adding a resolve.dedupe or optimizeDeps configuration to force Vite to properly consolidate your react dependency. For example, you could add:   resolve: { dedupe: ["react"] }   optimizeDeps: { include: ["react", "react-dom"] } This helps Vite avoid multiple copies or mis-resolution of react [[2]](https://github.com/better-auth/better-auth/issues/4386). • Alternatively, you might mark "react" as external in your Vite config’s optimizeDeps.external options (as your error message suggests) so it isn’t bundled by esbuild. • Since you’re using Bun along with Vite, also verify that Bun’s module resolution isn’t interfering—sometimes switching the bundler’s configuration or updating to a more recent version can help. Do these steps resolve your issue? Tag @better-auth-agent if you would like an answer from the Agent. <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) • [Discord](https://discord.gg/better-auth) • [GitHub](https://github.com/better-auth/better-auth) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/better-auth) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/better-auth/better-auth)
Author
Owner

@Rvvvv1 commented on GitHub (Nov 13, 2025):

@better-auth-agent vite 构建客户端实例 就是会报错 无法解决] VITE v7.2.2 ready in 100 ms
[0]
[0] ➜ Local: http://localhost:5173/
[0] ➜ Network: use --host to expose
[0] ✘ [ERROR] Could not resolve "react"
[0]
[0] ../node_modules/better-auth/dist/client/react/index.mjs:3:58:
[0] 3 │ import { useRef, useCallback, useSyncExternalStore } from 'react';
[0] ╵ ~~~~~~~
[0]
[0] You can mark the path "react" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
[0]
[0] /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1467
[0] let error = new Error(text);
[0] ^
[0]
[0] Error: Error during dependency optimization:
[0]
[0] ✘ [ERROR] Could not resolve "react"
[0]
[0] ../node_modules/better-auth/dist/client/react/index.mjs:3:58:
[0] 3 │ import { useRef, useCallback, useSyncExternalStore } from 'react';
[0] ╵ ~~~~~~~
[0]
[0] You can mark the path "react" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
[0]
[0]
[0] at failureErrorWithLog (/Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1467:15)
[0] at /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:926:25
[0] at /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1345:9
[0] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
[0] errors: [Getter/Setter],
[0] warnings: [Getter/Setter]
[0] }
[0]
[0] Node.js v24.9.0
[0] error: script "dev" exited with code 1
[0] error: script "client" exited with code 1
[0] bun client exited with code 1
^C[1] bun server exited with code SIGINT
error: script "dev" exited with code 1

<!-- gh-comment-id:3525790910 --> @Rvvvv1 commented on GitHub (Nov 13, 2025): @better-auth-agent vite 构建客户端实例 就是会报错 无法解决] VITE v7.2.2 ready in 100 ms [0] [0] ➜ Local: http://localhost:5173/ [0] ➜ Network: use --host to expose [0] ✘ [ERROR] Could not resolve "react" [0] [0] ../node_modules/better-auth/dist/client/react/index.mjs:3:58: [0] 3 │ import { useRef, useCallback, useSyncExternalStore } from 'react'; [0] ╵ ~~~~~~~ [0] [0] You can mark the path "react" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. [0] [0] /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1467 [0] let error = new Error(text); [0] ^ [0] [0] Error: Error during dependency optimization: [0] [0] ✘ [ERROR] Could not resolve "react" [0] [0] ../node_modules/better-auth/dist/client/react/index.mjs:3:58: [0] 3 │ import { useRef, useCallback, useSyncExternalStore } from 'react'; [0] ╵ ~~~~~~~ [0] [0] You can mark the path "react" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. [0] [0] [0] at failureErrorWithLog (/Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1467:15) [0] at /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:926:25 [0] at /Users/binlee/Desktop/tank/shadcn-admin/client/node_modules/esbuild/lib/main.js:1345:9 [0] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { [0] errors: [Getter/Setter], [0] warnings: [Getter/Setter] [0] } [0] [0] Node.js v24.9.0 [0] error: script "dev" exited with code 1 [0] error: script "client" exited with code 1 [0] bun client exited with code 1 ^C[1] bun server exited with code SIGINT error: script "dev" exited with code 1
Author
Owner

@better-auth-agent[bot] commented on GitHub (Nov 13, 2025):

Hi, thanks for reporting this issue! It looks like Vite is trying to resolve the React dependency from better-auth’s client/react module but can’t find it. This typically happens when your client project doesn’t have React installed as a direct dependency. One step that has resolved similar issues is to install both react and react-dom in your frontend project. Alternatively, you might consider configuring Vite to mark "react" as external so that the bundler doesn’t try to include it from better-auth.

Could you please check if installing React in the client project or updating your Vite configuration resolves the issue? tag @better-auth-agent if you would like an answer from the Agent.

DiagramDiscordGitHub

Diagram Join Star

<!-- gh-comment-id:3525792694 --> @better-auth-agent[bot] commented on GitHub (Nov 13, 2025): Hi, thanks for reporting this issue! It looks like Vite is trying to resolve the React dependency from better-auth’s client/react module but can’t find it. This typically happens when your client project doesn’t have React installed as a direct dependency. One step that has resolved similar issues is to install both react and react-dom in your frontend project. Alternatively, you might consider configuring Vite to mark "react" as external so that the bundler doesn’t try to include it from better-auth. Could you please check if installing React in the client project or updating your Vite configuration resolves the issue? tag @better-auth-agent if you would like an answer from the Agent. <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) • [Discord](https://discord.gg/better-auth) • [GitHub](https://github.com/better-auth/better-auth) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/better-auth) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/better-auth/better-auth)
Author
Owner

@himself65 commented on GitHub (Nov 13, 2025):

只要当我在前端项目里面下载了better-auth 这些报错就消失了

我觉得是你node_modules依赖有问题,听起来像是monorepo,我觉得这并不是better-auth的问题。

<!-- gh-comment-id:3529657002 --> @himself65 commented on GitHub (Nov 13, 2025): > 只要当我在前端项目里面下载了better-auth 这些报错就消失了 我觉得是你node_modules依赖有问题,听起来像是monorepo,我觉得这并不是better-auth的问题。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#10385