Uploading failed
While trying to update the old project I run to issue where im trying to basically commit new files. I have issue with probably PageTransition but dont know why when building of project is going well.
24 Replies
the issue might be with
My immediate guess would be the filename being slightly different. In Windows, file names are case insensitive so
pagetransition
and PageTransition
and pageTransITION
are all the same thing
In Linux where this builds like in Pages CI, things are case sensitive. So if the file isn't it Git as exactly PageTransition
, it's going to have a hard time resolving it.
Otherwise, if you can throw up a minimal reproduction onto GitHub or similar, I can take a closer lookHello James, thank you so much. Here is the repo
GitHub
GitHub - Tom4sko/GoldWinBox
Contribute to Tom4sko/GoldWinBox development by creating an account on GitHub.
yeah I think my theory is correct. In git that file is
pageTransition.tsx
note the lowercase p
So in Linux where it's case sensitive, PageTransition
with a capital P
doesn't existK let me try, because before i always used new git commit
and it is weird it didnt changed
because i always had it with big P
windows is going to make that painful to change
I'd recommend a
git mv -f pageTransition.tsx PageTransition.tsx
and then commit via cliThis is what i did , before, I just changed the name of file and commited
and didnt check if that changed or not
ah yes I see
PageTransition.tsx
now
What's the error you're getting now?
It's likely this'll affect a few files you have that are case mismatched16:33:59.111 ⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
Can you provide the full log?
I'm not familiar with Next.js but looks like you have something there
I'd also recommend you set
NODE_VERSION
env to 20
in your pages config for both preview and prod to avoid all those "unsupported engine" errorsokay this hepled me a lot
Lets gooo ❤️
thank you James
for anyone with same issue
Nice!
hi James, sorry for again disturbing. But when I put my web on live servers. The contanct form stopped working. I added API key to variables and secrets
I would recommend checking/adding logs for your endpoint to debug this. You can view them via
wrangler pages deployment tail
: https://developers.cloudflare.com/pages/functions/debugging-and-logging/Cloudflare Docs
Debugging and logging · Cloudflare Pages docs
Access your Functions logs by using the Cloudflare dashboard or the Wrangler CLI.
I debugged almost every line and on localhost it is working, but not on server. How that can be possible
What do the server logs show if you add logs before/after the API functionality? Something must be different - missing API key, etc. Adding logs and then debugging the production version is going to be your best option