gregberge / twc

Create reusable React + Tailwind CSS components in one line ✨
https://react-twc.vercel.app
MIT License
1.35k stars 31 forks source link

build failing #17

Closed Nishchit14 closed 10 months ago

Nishchit14 commented 10 months ago

🐛 Bug Report

I am getting this error on the production build on Vercel and local too. Also, vscode shows a type not foud error with a red color line. I am using pnpm

./components/sidebar/tree.tsx:3:21
Type error: Cannot find module 'react-twc' or its corresponding type declarations.

  1 | 'use client';
  2 |
> 3 | import { twc } from 'react-twc';
    |                     ^
  4 | import { useRouter } from 'next/navigation';
  5 | import { TypeAnimation } from 'react-type-animation';
  6 | import { Trash, Edit } from 'lucide-react';
   Checking validity of types  . ELIFECYCLE  Command failed with exit code 1.
image

Paste the results here:

## System:
 - OS: macOS 14.1.1
 - CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
 - Memory: 293.66 MB / 8.00 GB
 - Shell: 5.9 - /bin/zsh
## Binaries:
 - Node: 21.5.0 - /usr/local/bin/node
 - Yarn: 1.22.15 - ~/.yarn/bin/yarn
 - npm: 6.14.9 - ~/.config/yarn/global/node_modules/.bin/npm
 - Watchman: 2021.10.18.00 - /usr/local/bin/watchman
## npmPackages:
 - react: 18.2.0 => 18.2.0 
 - react-dom: 18.2.0 => 18.2.0