Next.js Discord

Discord Forum

error when 'npm run start'

Answered
Auth posted this in #help-forum
Open in Discord
Avatar
so when i do 'npm run build' then 'npm run start' website appears and disappears this is the error in console.
Image
Answered by Spectacled bear
in layout.tsx

<html lang="en">
<body>{children}</body>
</html>

use like this
View full answer

4 Replies

Avatar
https://github.com/Authtbh/portfolio-v1 this is the code and btw it runs perfectly when i run in dev mode
Avatar
Spectacled bear
in layout.tsx

<html lang="en">
<body>{children}</body>
</html>

use like this
Answer
Avatar
tyyy