当我使用构建文件时出现以下错误gulp build
。但gulp serve
工作正常,没有任何错误。我收到类似的错误
(node:7144) UnhandledPromiseRejectionWarning: UnhandledPromiseRejectionWarning: Unhandled Promise Rejection (rejection id: 1): Error: File not found with single glob: .tmp\templateCacheHtml.js (node:7144) [DEP0018] DeprecationWarning: Unhandled Promise Rejection is deprecated。将来,未处理的 Promise 拒绝将使用非零退出代码终止 Node.js 进程。[12:36:51] 'build' 在 26 毫秒后出错 [12:36:51] 错误:找不到带有单数 glob 的文件:.tmp\index.html
以前我的项目文件夹包含现在我更改bower_components
为. 因为我迁移到纱线。我的 index.html 文件如下所示,index.html 中有什么需要更改的吗?<dir>/bower_components/packages
node_modules/@bower_components/packages
<!-- build:js({.tmp,src/client}) scripts/vendor.js -->
<!-- inject:js -->
<!-- js files will be automatically insert here -->
<!-- endinject -->
<!-- endbuild -->
<!-- build:js({.tmp,src/client}) scripts/app.js -->
<!-- inject:partials -->
<!-- angular templates will be automatically converted in js and inserted here -->
<!-- endinject -->
<!-- endbuild -->
有人可以建议我解决这个问题吗?谢谢,