[GH-ISSUE #374] Astro Example could not run #8243

Closed
opened 2026-04-13 03:20:12 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @mrchantey on GitHub (Oct 30, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/374

Describe the bug

Astro example doesnt run, i was looking forward to trying out better-auth but instead was faced with debugging pnpm, a tool ive never used before, when it failed to find the local dependencies. All part of a beta release I suppose, best of luck with the launch!

To Reproduce
Steps to reproduce the behavior:

Running on Ubuntu 24.04.

  1. clone the repo
  2. install pnpm
  3. cd examples/astro-example
  4. run pnpm install
  5. run pnpm run dev
> pnpm better-auth migrate
 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command "better-auth" not found
  1. run pnpm astro dev
10:38:29 [ERROR] [vite] Error: The following dependencies are imported but could not be resolved:

  better-auth/client/plugins (imported by /home/pete/me/better-auth/examples/astro-example/src/libs/auth-client.ts)
  better-auth/client (imported by /home/pete/me/better-auth/examples/astro-example/src/libs/auth-client.ts)
  better-auth/solid (imported by /home/pete/me/better-auth/examples/astro-example/src/libs/auth-client.ts)

Are they installed?
Originally created by @mrchantey on GitHub (Oct 30, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/374 **Describe the bug** Astro example doesnt run, i was looking forward to trying out `better-auth` but instead was faced with debugging `pnpm`, a tool ive never used before, when it failed to find the local dependencies. All part of a beta release I suppose, best of luck with the launch! **To Reproduce** Steps to reproduce the behavior: Running on Ubuntu 24.04. 1. clone the repo 2. install pnpm 3. `cd examples/astro-example` 4. run `pnpm install` 5. run `pnpm run dev` ``` > pnpm better-auth migrate  ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command "better-auth" not found ``` 6. run `pnpm astro dev` ``` 10:38:29 [ERROR] [vite] Error: The following dependencies are imported but could not be resolved: better-auth/client/plugins (imported by /home/pete/me/better-auth/examples/astro-example/src/libs/auth-client.ts) better-auth/client (imported by /home/pete/me/better-auth/examples/astro-example/src/libs/auth-client.ts) better-auth/solid (imported by /home/pete/me/better-auth/examples/astro-example/src/libs/auth-client.ts) Are they installed? ```
GiteaMirror added the locked label 2026-04-13 03:20:12 -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#8243