Functions not building during Wrangler Deploy

For Workes & Pages, what is the name of the domain?

https://www.masterstationlog.com/

What is the error number?

No Error Number

What is the error message?

requested worker version could not be found

What is the issue or error you’re encountering

Wrangler Pages Deploy only uploading static files ignoring functions folder as of 5pm EST

What steps have you taken to resolve the issue?

Attempted several redeploys. When starting a log stream in the deployment / function page the following error presents: requested worker version could not be found

What are the steps to reproduce the issue?

Write an obvious javascript error in one of the functions, deploy via wrangler, and wrangler doesn’t response that the javascript is invalid. It just doesn’t deploy the functions at all

Screenshot of the error

1 Like

I didn’t realize that with a wrangler pages deploy command I needed to be in the “root” of my internet directory so it sees the functions folder to upload. I thought passing the assets path would be sufficient… Good to know

Hi, I’m facing a similar issue where my functions folder is not detected at all. Since you somehow figured it out, can you share your wrangler.toml and your scripts in package.json? Much appreciated.

I’m not using either. I just have an index.html and a functions/[service].js function folder/file. Just doing some simple testing

I’ve been making sure to change directory into the same folder as the index.html. Then I run the wrangler pages deploy command