✘ [ERROR] Must specify a project name

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

example.com

What is the error number?

No error number but only error message

What is the error message?

✘ [ERROR] Must specify a project name.

What is the issue or error you’re encountering

I got the " ✘ [ERROR] Must specify a project name." error when deploying to Pages, and I couldn’t find any resource on how to get it fixed.

What steps have you taken to resolve the issue?

At this moment I don’t know what else to do to get it resolved.

What are the steps to reproduce the issue?

Every deployment produces the same error

Screenshot of the error

What’s in your wrangler.toml? Is the name field specified?

1 Like

Thanks for replying. There is no wrangler.toml file in my project, which was created by command:
npm create cloudflare@latest

But the deploy script does invoke wrangler:
“deploy”: “npm run build && wrangler pages deploy ./dist”

So I guess this is the problem and I will try to create a wrangler.toml file and try again, thanks!

Update: issue was fixed by using
npm run build
instead of
npm run deploy

The error message was confusing though. Thanks @cherryjimbo for your help.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.