V0 project not building on vercel

I created a UI using v0.dev which has a few .tsx files. Uploaded it to a git project and trying to run it on vercel.

If I choose “other” frameworks in settings, the deploy goes through - but when I open the app the files are downloaded to the browser as .dms files.

If I choose “Next.js” framework in settings, I get this deployment error

[13:06:26.243] Running build in Washington, D.C., USA (East) – iad1
[13:06:26.392] Cloning
[13:06:26.408] Skipping build cache, deployment was triggered without cache.
[13:06:26.851] Cloning completed: 458.076ms
[13:06:27.273] Running “vercel build”
[13:06:28.967] Vercel CLI 37.13.0
[13:06:29.352] Your application is being built using next build. If you need to define a different build step, please create a vercel-build script in your package.json (e.g. { "scripts": { "vercel-build": "npm run prepare && next build" } }).
[13:06:29.357] Installing dependencies…
[13:06:30.019]
[13:06:30.020] up to date in 484ms
[13:06:30.026] Warning: Could not identify Next.js version, ensure it is defined as a project dependency.
[13:06:30.031] Error: No Next.js version could be detected in your project. Make sure "next" is installed in “dependencies” or “devDependencies”
[13:06:30.883]

would love some advice.

thanks

Hey @hp-heli-uscom. Are you able to share the project or chat here?

thanks. How do I privately share the project? I am able to now build it. I was missing the config files. I thought the vercel platform would add them. I am now typing to see why my css wont load.

I hope you already found a solution. If not, I have a few ideas.

  • Check your browser’s dev tools for errors and other clues about why the styles are missing. There could be a 404 on a CSS file, an error logged in the console, or other clues in the page source.
  • Append the special path /_src to your deployment and check the Source and Output to verify the CSS file exists where you expected it.
  • Use the Debugging 404 Errors tips to investigate further.

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