mac m1 运行项目、打自定义基座和生成app资源包,一直各种报错,windows没有任何问题
重装了,都卸载干净了,重新来都不行
error during build:
10:51:27.558 TypeError: fs_1.default.rmSync is not a function
10:51:27.564 at emptyDir (/Uni3/node_modules/@dcloudio/uni-cli-shared/dist/fs.js:15:22)
10:51:27.571 at buildOptions (/Uni3/node_modules/@dcloudio/uni-mp-vite/dist/plugin/build.js:19:39)
10:51:27.577 at Object.config (/Uni3/node_modules/@dcloudio/uni-mp-vite/dist/plugin/index.js:56:49)
10:51:27.580 at resolveConfig (/Uni3/node_modules/vite/dist/node/chunks/dep-689425f3.js:61497:33)
10:51:27.585 at processTicksAndRejections (internal/process/task_queues.js:97:5)
10:51:27.589 at async doBuild (/Uni3/node_modules/vite/dist/node/chunks/dep-689425f3.js:41564:20)
10:51:27.589 at async build (/Uni3/node_modules/vite/dist/node/chunks/dep-689425f3.js:41552:16)
10:51:27.593 at async CAC.runDev (/Uni3/node_modules/@dcloudio/vite-plugin-uni/dist/cli/action.js:28:30)
zhangrl (作者)
方案1可以的,感谢
2022-11-24 09:10