35 Replies
Could not read package.jsonyou don't have a package.json
i have bro
apparently not

i don't know what to tell you
Node.js doesn't see it
so it isn't there
so what im gonna do now ?
Your setup will need to be tweaked in some way
Next.js
Next.js is not relevant yet, it isn't even able to install with Node.js because it can't see the package.json
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
you'll need to fix your config/setup
can u help me with that ?
sure, what is your repo link and settings
can we go dm ?
i won't support in dms but you're welcome to dm some things to me
only the repo
sended
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
now this
Module not found: Can't resolve 'qrcode.react'dep isn't installed run npm run build locally and you'll see these too
what to do now
how i can install that
in env ?
i need to add
right ?
@Walshy
npm i qrcode.react
what
i cant type in to that terminal bro
what..

who created this project?
me
are you sure?
there's lots of dependencies here already
yeah
adding a new one is the exact same way
got it now
check dms
Your output directory is likely incorrect
what is it set to?
output: 'standalone'
this ?
@Walshy
in next.config.mjs ?
bro
@Walshy | Workers/Pages
Your Pages output directory
it should be configured to whatever directory Next.js outputs to, I don't remember exactly what that is