项目编译时uni-cli-shared\lib\util.js文件中const normalizePath = path => (isWin ? path.replace(/\/g, '/') : path)报错TypeError: path.replace is not a function
具体报错:
22:57:00.019 E:\GitLab\yunfu\estate-parent\app\node_modules\@dcloudio\uni-cli-shared\lib\util.js:7
22:57:00.020 const normalizePath = path => (isWin ? path.replace(/\/g, '/') : path)
22:57:00.064 ^
22:57:00.065 TypeError: path.replace is not a function
22:57:00.077 at normalizePath (E:\GitLab\yunfu\estate-parent\app\node_modules\@dcloudio\uni-cli-shared\lib\util.js:7:45)
22:57:00.079 at ErrorReport.report (E:\GitLab\yunfu\estate-parent\app\node_modules\@dcloudio\vue-cli-plugin-uni\lib\error-reporting.js:44:11)
22:57:00.094 at report (E:\GitLab\yunfu\estate-parent\app\node_modules\@dcloudio\vue-cli-plugin-uni\lib\error-reporting.js:144:24)
22:57:00.096 at process.<anonymous> (E:\GitLab\yunfu\estate-parent\app\node_modules\@dcloudio\vue-cli-plugin-uni\lib\error-reporting.js:154:42)
22:57:00.114 at process.emit (events.js:314:20)
22:57:00.115 at process._fatalException (internal/process/execution.js:165:25)
飞奔的兔子
有解决吗
2021-07-12 17:39