报错信息:
$ cross-env NODE_ENV=test UNI_PLATFORM=h5 vue-cli-service uni-build
/usr/local/servers/nodefiles/uni-app-lczgu-dev/node_modules/@dcloudio/vue-cli-plugin-uni/lib/error-reporting.js:45
err = err.replace(this._UNI_INPUT_DIR_REG, 'UNI_INPUT_DIR')
^
TypeError: err.replace is not a function
at ErrorReport.report (/usr/local/servers/nodefiles/uni-app-lczgu-dev/node_modules/@dcloudio/vue-cli-plugin-uni/lib/error-reporting.js:45:15)
at report (/usr/local/servers/nodefiles/uni-app-lczgu-dev/node_modules/@dcloudio/vue-cli-plugin-uni/lib/error-reporting.js:144:24)
at process.<anonymous> (/usr/local/servers/nodefiles/uni-app-lczgu-dev/node_modules/@dcloudio/vue-cli-plugin-uni/lib/error-reporting.js:154:42)
at process.emit (events.js:315:20)
at process._fatalException (internal/process/execution.js:169:25)
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
本地打包正常,在package.js的命令上去除UNI_OUTPUT_DIR=dist,也还是报错,与之前配置无差别,没搞清楚具体原因,特在此请教
寒风丶
怎么解决的能说一下嘛大佬?
2023-03-24 18:32