Running `vercel build` before `vercel dev` when pulling projects

I have a CRA (react project) and I want to use vercel dev locally so I’m using Vercel CLI in the terminal.

When I use vercel dev, instead of working as expected, it shows the following errors:

  1. You can test by creating a ‘create react app’ in your vercel projects
  2. Clone locally
  3. make sure you are using latest vercel version npm i -g vercel@latest
  4. In the root directory of your project use vercel dev

It looks like I had to first run the following command:
vercel build

After that vercel dev works.

Thanks!

Glad that this works for you now!

1 Like

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