报错信息:

Failed to load config from xx/.../xx/vite.config.ts error during build:
Error:

You installed esbuild for another platform than the one you're currently using.
This won't work because esbuild is written with native code and needs to install a
platform-specific binary executable.

Specifically the "@esbuild/darwin-x64" package is present but this platform needs
the "@esbuild/darwin-x64" package instead. ......

 

解决方案:

1. 删除项目本地的 node_modules,然后重新安装,问题解决(优先推荐);
2. 网上其他版本的处理方案:检查 ~/. vscode/extensions 文件夹,然后安装 @esbuild/darwin-x64;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。