【发布时间】:2020-09-08 12:06:50
【问题描述】:
按照https://www.npmjs.com/package/@azure/msal-angular 的说明升级到@azure/msal-angular 1.1.1 和msal 1.4.0 后,我的Angular 8 在ng serve --aot 中运行时出现以下错误。
TypeError: glob pattern string required
at new Minimatch (minimatch.js:116)
at azure-msal-angular.js:213
at Array.filter (<anonymous>)
at MsalService.push../node_modules/@azure/msal-angular/fesm5/azure-msal-angular.js.MsalService.getScopesForEndpoint (azure-msal-angular.js:212)
at MsalInterceptor.push../node_modules/@azure/msal-angular/fesm5/azure-msal-angular.js.MsalInterceptor.intercept (azure-msal-angular.js:367)
at HttpInterceptorHandler.push../node_modules/@angular/common/fesm5/http.js.HttpInterceptorHandler.handle (http.js:1279)
at HttpXsrfInterceptor.push../node_modules/@angular/common/fesm5/http.js.HttpXsrfInterceptor.intercept (http.js:1888)
at HttpInterceptorHandler.push../node_modules/@angular/common/fesm5/http.js.HttpInterceptorHandler.handle (http.js:1279)
at HttpInterceptingHandler.push../node_modules/@angular/common/fesm5/http.js.HttpInterceptingHandler.handle (http.js:1932)
at MergeMapSubscriber.project (http.js:1099)
ng serve 工作正常
有什么想法吗?
【问题讨论】: