clerk / javascript

Official Javascript repository for Clerk authentication
https://clerk.com
MIT License
1.04k stars 235 forks source link

Not able to use intellisense for many items that i was able to use few days ago like SignInButton etc #3157

Closed Jazzykhan closed 4 months ago

Jazzykhan commented 5 months ago

Preliminary Checks

Reproduction

https://github.com/Jazzykhan/my-app

Publishable key

pk_test_ZmFpci1hbGJhY29yZS00MC5jbGVyay5hY2NvdW50cy5kZXYk

Description

Steps to reproduce:

  1. Step 1: Create a new next project with npx create-next-app@latest Use javascript, Don't use src dir. use App dir. Import alias default.

  2. Step 2: Once the project is running add clerk in package.json for nextjs project. Then in any file try to add useUser() or SignInButton, isLoaded, IsSingnedIn etc in the return statement and it will not show the auto-import/complete/fill option which i was able to get 2 days ago. I just reinstalled my macos completly and it is still not showing me auto import or intellisense options even with tailwind css, any node-modules package is not being able to show in auto-complete option or i don't know what to call it: Please check the screenshot below.

Expected behavior:

When i start Typing <SignInB : It should show me the auto import options (SignInButton) from ClerkJs.

Actual behavior: It doesnt show anything even on of the top of the file when i try to import it like this:

import { SignedIn, } from "@clerk/nextjs";

After the comma in {SignedIn) i am not able to add SignInButton.

Environment

System:
    OS: macOS 14.0
    CPU: (8) arm64 Apple M1
    Memory: 2.75 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.1 - /usr/local/bin/node
    npm: 10.5.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 123.0.6312.107
    Safari: 17.0
  npmPackages:
    @clerk/nextjs: ^4.29.12 => 4.29.12 
    @heroicons/react: ^2.1.3 => 2.1.3 
    autoprefixer: ^10.0.1 => 10.4.19 
    next: 14.1.4 => 14.1.4 
    postcss: ^8 => 8.4.38 
    react: ^18 => 18.2.0 
    react-dom: ^18 => 18.2.0 
    tailwindcss: ^3.3.0 => 3.4.3
Screenshot 2024-04-09 at 23 57 32 Screenshot 2024-04-10 at 00 06 28
Jazzykhan commented 5 months ago

When i add: CheckJs in jsConfig.json it is showing to import from clerk after doing command + . on the useUser() but crashed my project with lots of errors/warnings.

Screenshot 2024-04-10 at 01 45 20 Screenshot 2024-04-10 at 01 45 25
jescalan commented 4 months ago

Hey there! We're so sorry to hear about the Intellisense issues you're running into here. This sounds super frustrating for sure. Unfortunately, there isn't much we're able to do about this, as intellisense is something that comes with VS Code, and not with Clerk. We'd recommend reaching out perhaps to VS Code support to see if they are able to help you out here.