next-learn icon indicating copy to clipboard operation
next-learn copied to clipboard

Chapter 1 - login arrow is enormous

Open richard-misiak-cg opened this issue 1 year ago • 2 comments

Steps to reproduce

Following https://nextjs.org/learn/dashboard-app/getting-started

  1. run
    npx create-next-app@latest nextjs-dashboard --use-npm --example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example"
    cd nextjs-dashboard
    npm i
    npm run dev
    
  2. go to http://localhost:3000/

The arrow icon is not scaled correctly: localhost_3000_

system info

OS - windows 11 Browser - Chrome Version 123.0.6312.105 (Official Build) (64-bit)

> node -v
v20.11.1

> npm -v
npm -v
10.2.4

> npm list
+-- @heroicons/[email protected]
+-- @tailwindcss/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @vercel/[email protected]
+-- @vercel/[email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]

Related to https://github.com/tailwindlabs/heroicons/discussions/1120

richard-misiak-cg avatar Apr 03 '24 12:04 richard-misiak-cg

I had the same issue. I found that the cause of this is that the global styles are not included. However, chapter 2 of the tutorial prompts us to include the global styles, and that fixes the issue. I'd suggest that <ArrowRightIcon className="w-5 md:w-6" /> is removed from page.tsx so that it looks ok prior to the global styles being included (and this will mean that the app will reflect the expected result from step 1.

ed-nps avatar Apr 09 '24 07:04 ed-nps

For all following the tutorial, what you get in the setup is a starter project. Ignore any error (like arrow, font, etc). You have to go through the tutorial and you'll find the fix for all those initial issues. So, be patient and follow the tutorial you'll find answers.

joelrb avatar Apr 25 '24 14:04 joelrb

As mentioned, you'll set up the styles in the next chapter 😄

leerob avatar Jun 23 '24 23:06 leerob