Build Error

Need help with that i dont know what to do
36 Replies
! Sikqo
! SikqoOP7mo ago
Walshy
Walshy7mo ago
Could not read package.json
you don't have a package.json
! Sikqo
! SikqoOP7mo ago
i have bro
Walshy
Walshy7mo ago
apparently not
! Sikqo
! SikqoOP7mo ago
No description
Walshy
Walshy7mo ago
i don't know what to tell you Node.js doesn't see it so it isn't there
! Sikqo
! SikqoOP7mo ago
so what im gonna do now ?
Walshy
Walshy7mo ago
Your setup will need to be tweaked in some way
! Sikqo
! SikqoOP7mo ago
Next.js
Walshy
Walshy7mo ago
Next.js is not relevant yet, it isn't even able to install with Node.js because it can't see the package.json
! Sikqo
! SikqoOP7mo ago
what should I do then, I just want to upload those files to cloudflare are in .ts and .tsx format so I don't know what to do if it's not html and other
Walshy
Walshy7mo ago
you'll need to fix your config/setup
! Sikqo
! SikqoOP7mo ago
can u help me with that ?
Walshy
Walshy7mo ago
sure, what is your repo link and settings
! Sikqo
! SikqoOP7mo ago
can we go dm ?
Walshy
Walshy7mo ago
i won't support in dms but you're welcome to dm some things to me
! Sikqo
! SikqoOP7mo ago
only the repo sended
Walshy
Walshy7mo ago
yeah so your package.json isn't in the root which is what you have configured you have everything within a folder either set your root directory to that folder or move everything up one level
! Sikqo
! SikqoOP7mo ago
now this
! Sikqo
! SikqoOP7mo ago
Walshy
Walshy7mo ago
Module not found: Can't resolve 'qrcode.react'
dep isn't installed run npm run build locally and you'll see these too
! Sikqo
! SikqoOP7mo ago
what to do now how i can install that in env ? i need to add right ? @Walshy
Walshy
Walshy7mo ago
npm i qrcode.react
! Sikqo
! SikqoOP7mo ago
what i cant type in to that terminal bro
Walshy
Walshy7mo ago
what..
! Sikqo
! SikqoOP7mo ago
No description
Walshy
Walshy7mo ago
who created this project?
! Sikqo
! SikqoOP7mo ago
me
Walshy
Walshy7mo ago
are you sure? there's lots of dependencies here already
! Sikqo
! SikqoOP7mo ago
yeah
Walshy
Walshy7mo ago
adding a new one is the exact same way
! Sikqo
! SikqoOP7mo ago
got it now check dms
Walshy
Walshy7mo ago
Your output directory is likely incorrect what is it set to?
! Sikqo
! SikqoOP7mo ago
output: 'standalone' this ? @Walshy in next.config.mjs ? bro @Walshy | Workers/Pages
Walshy
Walshy7mo ago
Your Pages output directory it should be configured to whatever directory Next.js outputs to, I don't remember exactly what that is
! Sikqo
! SikqoOP7mo ago
alr check dms u know why ?

Did you find this page helpful?