Coder Social home page Coder Social logo

shadcn-ui / next-template Goto Github PK

View Code? Open in Web Editor NEW
1.2K 1.2K 178.0 153 KB

A Next.js 13 template for building apps with Radix UI and Tailwind CSS.

Home Page: https://template.shadcn.com

TypeScript 73.78% JavaScript 17.53% CSS 8.69%
nextjs starter tailwind template

next-template's People

Contributors

shadcn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

next-template's Issues

next version 13.3 is causing error

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>)

Issues with `src`

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!

Module not found: Can't resolve lucide-react

Problem

After the create-next-app command, there is an error after running npm run dev:
Screenshot 2023-08-12 at 11 23 34 AM

The solution to this can be found in the stackoverflow post here

Solution

Updating the lucide-react version to "lucide-react": "^0.263.1"

Error box in UI

How can I get rid of the red error box displaying in the UI?

Routing 404

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.

Warning in form

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

VS Code TypeScript settings points to a directory outside the project which might not be present

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.

vercel/next.js#30815 (comment)

Nextjs 13.2

It would be great to have a version of the template that supports NextJS 13.2 (app router).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.