Build Error

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

Did you find this page helpful?