1***@163.com
1***@163.com
  • 发布:2023-06-28 14:32
  • 更新:2023-11-08 14:48
  • 阅读:373

微信小程序项目运行不起来

分类:HBuilderX
failed to load config from D:\code_fish\qytapp2\vite.config.ts  
14:29:16.166 error during build:  
14:29:16.170 Error:   
14:29:16.173 You installed esbuild for another platform than the one you're currently using.  
14:29:16.174 This won't work because esbuild is written with native code and needs to  
14:29:16.176 install a platform-specific binary executable.  
14:29:16.179 Specifically the "esbuild-windows-32" package is present but this platform  
14:29:16.182 needs the "esbuild-windows-64" package instead. People often get into this  
14:29:16.182 situation by installing esbuild on Windows or macOS and copying "node_modules"  
14:29:16.188 into a Docker image that runs Linux, or by copying "node_modules" between  
14:29:16.192 Windows and WSL environments.  
14:29:16.195 If you are installing with npm, you can try not copying the "node_modules"  
14:29:16.199 directory when you copy the files over, and running "npm ci" or "npm install"  
14:29:16.202 on the destination platform after the copy. Or you could consider using yarn  
14:29:16.205 instead of npm which has built-in support for installing a package on multiple  
14:29:16.205 platforms simultaneously.  
14:29:16.209 If you are installing with yarn, you can try listing both this platform and the  
14:29:16.212 other platform in your ".yarnrc.yml" file using the "supportedArchitectures"  
14:29:16.215 feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures  
14:29:16.218 Keep in mind that this means multiple copies of esbuild will be present.  
14:29:16.221 Another alternative is to use the "esbuild-wasm" package instead, which works  
14:29:16.224 the same way on all platforms. But it comes with a heavy performance cost and  
14:29:16.228 can sometimes be 10x slower than the "esbuild" package, so you may also not  
14:29:16.231 want to do that.  
14:29:16.234     at generateBinPath (D:\software\HBuilderX\plugins\uniapp-cli-vite\node_modules\esbuild\lib\main.js:1808:17)  
14:29:16.238     at esbuildCommandAndArgs (D:\software\HBuilderX\plugins\uniapp-cli-vite\node_modules\esbuild\lib\main.js:1886:33)  
14:29:16.241     at ensureServiceIsRunning (D:\software\HBuilderX\plugins\uniapp-cli-vite\node_modules\esbuild\lib\main.js:2051:25)  
14:29:16.245     at build (D:\software\HBuilderX\plugins\uniapp-cli-vite\node_modules\esbuild\lib\main.js:1942:26)  
14:29:16.248     at bundleConfigFile (file:///D:/software/HBuilderX/plugins/uniapp-cli-vite/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:62740:26)  
14:29:16.252     at loadConfigFromFile (file:///D:/software/HBuilderX/plugins/uniapp-cli-vite/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:62716:31)  
14:29:16.255     at resolveConfig (file:///D:/software/HBuilderX/plugins/uniapp-cli-vite/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:62341:34)  
14:29:16.258     at doBuild (file:///D:/software/HBuilderX/plugins/uniapp-cli-vite/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:45248:26)  
14:29:16.261     at Module.build (file:///D:/software/HBuilderX/plugins/uniapp-cli-vite/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:45237:22)  
14:29:16.265     at D:\software\HBuilderX\plugins\uniapp-cli-vite\node_modules\vite\index.cjs:22:55
2023-06-28 14:32 负责人:无 分享
已邀请:
沃野布吉岛

沃野布吉岛 - ahh

请问问题解决了吗

  • 1***@163.com (作者)

    解决了,但时间太久了,忘记是怎么解决的

    2023-12-06 15:18

要回复问题请先登录注册