error when 'npm run start'
Answered
Auth posted this in #help-forum
![Avatar](https://cdn.discordapp.com/avatars/1045909242101633126/f0010aca6758b8e1ffd6ff7184343d54.webp?size=256)
AuthOP
so when i do 'npm run build' then 'npm run start' website appears and disappears this is the error in console.
![Image](https://cdn.discordapp.com/attachments/1213901820922040360/1213901821337407548/Screenshot_2024-03-03_225617.png?ex=65f7292b&is=65e4b42b&hm=489215cd2da1968496d9e85257baf974801db1af68c38e0b87e7b328ea161d37&)
Answered by Spectacled bear
in layout.tsx
use like this
<html lang="en">
<body>{children}</body>
</html>
use like this
4 Replies
![Avatar](https://cdn.discordapp.com/avatars/1045909242101633126/f0010aca6758b8e1ffd6ff7184343d54.webp?size=256)
AuthOP
https://github.com/Authtbh/portfolio-v1 this is the code and btw it runs perfectly when i run in dev mode
https://portfolio-v1-mauve-six.vercel.app/ check youself what happens
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Spectacled bear
in layout.tsx
use like this
<html lang="en">
<body>{children}</body>
</html>
use like this
Answer
![Avatar](https://cdn.discordapp.com/avatars/1045909242101633126/f0010aca6758b8e1ffd6ff7184343d54.webp?size=256)
AuthOP
tyyy