shadcn-ui / next-template Goto Github PK
View Code? Open in Web Editor NEWA Next.js 13 template for building apps with Radix UI and Tailwind CSS.
Home Page: https://template.shadcn.com
A Next.js 13 template for building apps with Radix UI and Tailwind CSS.
Home Page: https://template.shadcn.com
I'm getting this error in my tailwind.config.js?
But the module is there in my package.json and i've try reinstalling all modules. I used npx shadcn-ui init
for the setup.
I have extension in VSCode called "Headwind" which essentially helps to format tailwind classes in correct order, but the eslint config tailwindcss/order thinks of different correct way of formatting tailwindcss classes
Any ideas? Setup the template and then ran pnpm dlx shadcn-ui@latest init
for the component.json
.
I am getting this error while starting the dev server on windows
event - compiled client and server successfully in 7.5s (1501 modules)
error - SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
Just observed that the TypeScript library directory mentioned in the .vscode/settings.json
points to a directory that might not be present on the users' machine.
"typescript.tsdk": "../../node_modules/.pnpm/[email protected]/node_modules/typescript/lib",
I think it should be configured like this -
"typescript.tsdk": "./node_modules/typescript/lib",
Also, based on this discussion, it looks like the tsconfig.tsbuildinfo
file should be added to .gitignore
.
After the create-next-app
command, there is an error after running npm run dev
:
The solution to this can be found in the stackoverflow post here
Updating the lucide-react
version to "lucide-react": "^0.263.1"
what is the purpose of env variable FORCE_COLOR in the package.json script?
I searched the whole project but it's not being used anywhere else.
I noticed that one of the dependencies is the sharp package, however, it is not being used in this project. Do you know what this package is useful for in this project?
Support for the src directory would be super-duper nice
only button left in the UI folder
How can I get rid of the red error box displaying in the UI?
Can someone please improve readme to explain code , show some rendered images of the website and explain the use case of this project in more detail. please make it friendly for people who don't know about web development code that much
It would be great to have a version of the template that supports NextJS 13.2 (app router).
Hi, after cloning I moved everything to a src
dir except public
(node_modules
and .next
are also outside the src
).
I then edited the basePath
to "./src"
but doesn't work so well: the app compiles, doesn't give any errors, but it completely loses the formatting, the Next and GitHub logo are gigantic, and things are aligned in bottom left corner. Everything seems to work fine when not using src
. I also tried changing the paths
on tsconfig
to "@/*": ["./src/*"]
- from what I understand this has the same effect as basePath
.
All imports resolve, and point to the right place (they do consider @
as being the src
dir). I wondering if there's anything what I might be doing wrong, couldn't find a way to troubleshoot this.
Really appreciate your work on sharing this and ui
thanks a lot!
I'm facing this warning when changing the username field:
Warning: A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component.
Other fields are working as expected.
Also getting duplicate of issue 1456.
Check the code HERE
Why doesn't the route work? I created a services folder and a page.tsx file inside the app folder and when I navigate to that path it gives me a 404 error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.