Skip to content

疑难问题

esbuild ENOENT 报错

运行 npm run dev 时 出现 node_modules\esbuild\esbuild.exe ENOENT

shell
# 项目目录下执行如下命令
node ./node_modules/esbuild/install.js

Transforming async generator functions to the configured target environment ("es2015") is not supported yei

集成fast-extends后打包报错,因为s3的库不支持es2015,需要将编译目标改成es2018或以上esnext

js
//修改vite.config.js
{
    build: {
        target: 'es2018'  //或者 esnext
    }
}