[GH-ISSUE #1720] VS Code auto-import functionality breaks after installing better-auth package with pnpm #8885

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

Originally created by @ourines on GitHub (Mar 7, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1720

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

After installing the better-auth package using pnpm, VS Code stopped suggesting imports from all node_modules packages. The auto-import functionality immediately returned to normal after removing the better-auth package.

  1. Create a new or use existing TypeScript project
  2. Ensure VS Code auto-import functionality works correctly (VS Code suggests imports from installed packages)
  3. Run pnpm add better-auth
  4. Attempt to import any package in your code editor

Current vs. Expected behavior

  • Install better-auth with pnpm
Image Image
  • Remove better-auth
Image Image

It's work

What version of Better Auth are you using?

1.2.3

Provide environment information

- Package Manager: pnpm
- IDE: Cursor
- Cursor Version:  0.46.10
- OS: MacOS
- better-auth Version: 1.2.3

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

Types

Auth config (if applicable)

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

Additional context

After installing the better-auth package:

  • VS Code no longer suggests imports from any package in node_modules
  • The auto-import functionality appears completely broken
  • Removing the package with pnpm remove better-auth immediately restores full functionality
Originally created by @ourines on GitHub (Mar 7, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1720 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce After installing the better-auth package using pnpm, VS Code stopped suggesting imports from all node_modules packages. The auto-import functionality immediately returned to normal after removing the better-auth package. 1. Create a new or use existing TypeScript project 2. Ensure VS Code auto-import functionality works correctly (VS Code suggests imports from installed packages) 3. Run `pnpm add better-auth` 4. Attempt to import any package in your code editor ### Current vs. Expected behavior - Install better-auth with pnpm <img width="569" alt="Image" src="https://github.com/user-attachments/assets/74ee1993-4df6-4426-be0c-bc3e44eb2de1" /> <img width="496" alt="Image" src="https://github.com/user-attachments/assets/315c4557-438d-456a-8ec5-6982c9b0a489" /> - Remove better-auth <img width="585" alt="Image" src="https://github.com/user-attachments/assets/7b9782d2-d07e-4710-8be8-a49a9a907d59" /> <img width="472" alt="Image" src="https://github.com/user-attachments/assets/d9b891a9-2215-408d-aabe-52da6c602def" /> It's work ### What version of Better Auth are you using? 1.2.3 ### Provide environment information ```bash - Package Manager: pnpm - IDE: Cursor - Cursor Version: 0.46.10 - OS: MacOS - better-auth Version: 1.2.3 ``` ### Which area(s) are affected? (Select all that apply) Types ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context After installing the better-auth package: - VS Code no longer suggests imports from any package in node_modules - The auto-import functionality appears completely broken - Removing the package with pnpm remove better-auth immediately restores full functionality
GiteaMirror added the lockedbug labels 2026-04-13 04:08:21 -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#8885