构建完成后未找到名为“build”的输出目录。您可以在项目设置中配置输出目录

问题描述 投票:0回答:3
Error: No Output Directory named "build" found after the Build completed. You can configure the Output Directory in your Project Settings.

我在我的存储库中遇到此错误https://github.com/Excell-09/find-job

我想在 vercel 上部署时修复此错误

reactjs express build vercel build-error
3个回答
0
投票

这里您的构建目录位于

public
文件夹内。因此您必须在项目的 vercel 设置中编辑构建目录设置。默认情况下,它会查找
public
路径。现在你的构建文件夹是
client/public

你编辑这个输出目录


0
投票

就我而言,我只需在输出目录部分加一个点:


0
投票

这个错误也发生在我身上,但是因为我的 svelte.config.js 设置为适配器节点。它必须是:

import adapter from '@sveltejs/adapter-auto';

import adapter from '@sveltejs/adapter-vercel';
© www.soinside.com 2019 - 2024. All rights reserved.