Next.js Discord

Discord Forum

A code sample in https://nextjs.org/learn seems to have a typo..

Unanswered
Pyrenean Mountain Dog posted this in #help-forum
Open in Discord
Pyrenean Mountain DogOP
Should I be pointing this out to someone?

[Last code sample at the bottom of the page](https://nextjs.org/learn/dashboard-app/css-styling#css-modules) shows a semicolon in the following line of code <div className={styles.shape}></div>;. The semicolon does not break the app - it just shows up in the browser. I don't think it should be there though.

10 Replies

Pyrenean Mountain DogOP
Ok, sorry, not the bottom of the page but the end of the second / middle section titled "CSS Modules
"
html in jsx/tsx
Pyrenean Mountain DogOP
No but it renders in the browser. Well it isn't critical just imperfect 😉
Pyrenean Mountain DogOP
They want the semicolon to show up in your browser when you do the tutorial?
@Pyrenean Mountain Dog They want the semicolon to show up in your browser when you do the tutorial?
I’m. Infused about your query. Can you share screenshot where you saw this(just screenshot, not link)
Pyrenean Mountain DogOP
Bro.. The code sample in the tutorial has it (linked above). The result can be reproduced by adding that code to a newly created next project and looking at it in the browser. Plus - we know that that's what it does (we know that that extra char just shows up in the browser when it's present in the code). :blob_yes:
I gotta get some sleep tho. I's past 3am where I am
You can ctrl + f and paste <div className={styles.shape}></div> in the search field at https://nextjs.org/learn/dashboard-app/css-styling#css-modules and you will see it as the last character at the end of that line.