Build Error

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

Did you find this page helpful?