Skip to content

Can't resolve './lib/utils' #3

@shenghu

Description

@shenghu

@jerryjliu I got following error when building frontend. Is ./lib/utils missing in the code, or do I miss some step?

./app/components/ui/button.tsx:5:0
Module not found: Can't resolve './lib/utils'
  3 | import * as React from "react";
  4 | 
> 5 | import { cn } from "./lib/utils";
  6 | 
  7 | const buttonVariants = cva(
  8 |   "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./app/components/ui/chat/chat-input.tsx
./app/components/ui/chat/index.ts
./app/components/chat-section.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions