Open Ihavenowand opened 2 weeks ago
it's because of your es lint configuration. Can you share your .eslintrc
To solve this issue you can just remove the no unused vars and no unused objects from your .eslintrc
How to solve this, i have the same issue
How to solve this, i have the same issue
to ignore these ts errors during build time, you can set ignoreDuringBuilds
to true
module.exports = {
eslint: {
ignoreDuringBuilds: true,
},
}
Or you can disable certain rules by making changes in your .eslintrc.json
file
{
"extends": "next",
"rules": {
"react/no-unescaped-entities": "off",
"@next/next/no-page-custom-font": "off"
}
}
Or can make the necessary correction in those respective files created by shadcn
https://github.com/shadcn-ui/ui/pull/5232
https://github.com/shadcn-ui/ui/pull/5264
https://github.com/shadcn-ui/ui/pull/5222
these PR's mostly fixed these issues
Describe the bug
When creating a new install of NextJS and adding ShadCN UI components, a number of build issues prevent deploying to vercel.
There is zero custom code here. Default install of NextJS and ShadCN.
I don't understand how build errors start immediately after installing from
npx
.Affected component/components
calendar.tsx, chart.tsx, command.tsx, input.tsx, textarea.tsx, use-toast.ts
How to reproduce
npx create-next-app@latest
npx shadcn@latest init
as per documentationnpx shadcn@latest add
& usea
option to select all componentsCodesandbox/StackBlitz link
No response
Logs
System Info
Before submitting