Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Next.JS + VSCode intellisense not suggest HeroUI (NextUI) #4607

Open
shirafzx opened this issue Jan 20, 2025 · 1 comment
Open

[BUG] - Next.JS + VSCode intellisense not suggest HeroUI (NextUI) #4607

shirafzx opened this issue Jan 20, 2025 · 1 comment

Comments

@shirafzx
Copy link

Discussed in #4602

Originally posted by shirafzx January 20, 2025
Problem : VSCode Intellisense not suggest heroui component when install multiple dependencies
image

Reproduce

  1. Installing lastest Next.JS
    image
  2. Installing HeroUI by CLI
  • heroui add
  • select button
    from this step VSCode intellisense still working well
    image
  1. heroui add again and select multi component
  • I selected these following component
    image
  • and I got no suggestion like this
    image
    but compoent still working if manual import import { HeroUIProvider } from "@heroui/system";
    Or did I do something wrong? Thankyou :D

this is tailwind config

import {heroui} from '@heroui/theme';
import type { Config } from "tailwindcss";

export default {
  content: [
    "./pages/**/*.{js,ts,jsx,tsx,mdx}",
    "./components/**/*.{js,ts,jsx,tsx,mdx}",
    "./app/**/*.{js,ts,jsx,tsx,mdx}",
    "./node_modules/@heroui/theme/dist/components/(badge|button|divider|dropdown|link|modal|navbar|pagination|skeleton|ripple|spinner|menu|popover).js"
  ],
  theme: {
    extend: {
      colors: {
        background: "var(--background)",
        foreground: "var(--foreground)",
      },
    },
  },
  plugins: [heroui()],
} satisfies Config;

this is package.json

{
  "name": "nextjs-20-1-2025",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev --turbopack",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@heroui/badge": "^2.2.6",
    "@heroui/button": "^2.2.10",
    "@heroui/divider": "^2.2.6",
    "@heroui/dropdown": "^2.3.10",
    "@heroui/link": "^2.2.8",
    "@heroui/modal": "^2.2.8",
    "@heroui/navbar": "^2.2.9",
    "@heroui/pagination": "^2.2.9",
    "@heroui/skeleton": "^2.2.6",
    "@heroui/system": "^2.4.7",
    "@heroui/theme": "^2.4.6",
    "framer-motion": "^11.18.1",
    "next": "15.1.5",
    "react": "^19.0.0",
    "react-dom": "^19.0.0"
  },
  "devDependencies": {
    "@eslint/eslintrc": "^3",
    "@types/node": "^20",
    "@types/react": "^19",
    "@types/react-dom": "^19",
    "eslint": "^9",
    "eslint-config-next": "15.1.5",
    "postcss": "^8",
    "tailwindcss": "^3.4.1",
    "typescript": "^5"
  }
}

Copy link

linear bot commented Jan 20, 2025

@shirafzx shirafzx changed the title Next.JS + VSCode intellisense not suggest HeroUI (NextUI) [BUG] - Next.JS + VSCode intellisense not suggest HeroUI (NextUI) Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant