» /utils "from" src/components/ui/button.tsx ". Существует ли файл?"
Для справки я использую Vite + React + Tailwind.
Я прикрепил снимок экрана с остальной частью сообщения об ошибке.
Код: Выделить всё
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "src/lib/utils"
< /code>
Это код в utils.ts: < /p>
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
Код: Выделить всё
import { Button } from "@/components/ui/button"
Я предполагаю, что это синтаксис или ошибка пути, которую я упускаю из виду. У кого -нибудь есть мысли? Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/785 ... -from-does
Мобильная версия