Build Error

Need help with that i dont know what to do
36 Replies
Walshy
Walshy2mo ago
Could not read package.json
you don't have a package.json
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
i have bro
Walshy
Walshy2mo ago
apparently not
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
No description
Walshy
Walshy2mo ago
i don't know what to tell you Node.js doesn't see it so it isn't there
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
so what im gonna do now ?
Walshy
Walshy2mo ago
Your setup will need to be tweaked in some way
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
Next.js
Walshy
Walshy2mo 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 (Termed)
Sikqo (Termed)OP2mo 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
Walshy2mo ago
you'll need to fix your config/setup
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
can u help me with that ?
Walshy
Walshy2mo ago
sure, what is your repo link and settings
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
can we go dm ?
Walshy
Walshy2mo ago
i won't support in dms but you're welcome to dm some things to me
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
only the repo sended
Walshy
Walshy2mo 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 (Termed)
Sikqo (Termed)OP2mo ago
now this
Walshy
Walshy2mo 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 (Termed)
Sikqo (Termed)OP2mo ago
what to do now how i can install that in env ? i need to add right ? @Walshy
Walshy
Walshy2mo ago
npm i qrcode.react
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
what i cant type in to that terminal bro
Walshy
Walshy2mo ago
what..
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
No description
Walshy
Walshy2mo ago
who created this project?
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
me
Walshy
Walshy2mo ago
are you sure? there's lots of dependencies here already
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
yeah
Walshy
Walshy2mo ago
adding a new one is the exact same way
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
got it now check dms
Walshy
Walshy2mo ago
Your output directory is likely incorrect what is it set to?
Sikqo (Termed)
Sikqo (Termed)OP2mo ago
output: 'standalone' this ? @Walshy in next.config.mjs ? bro @Walshy | Workers/Pages
Walshy
Walshy2mo 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 (Termed)
Sikqo (Termed)OP2mo ago
alr check dms u know why ?

Did you find this page helpful?