angular8 添加 消息弹窗提示错误There is no directive with “exportAs” set to “bs-modal”
Uncaught Error: Template parse errors:
There is no directive with “exportAs” set to “bs-modal” (“
]#warningModal=”bs-modal” class=”modal fade” *ngIf=”msgFlag” tabindex=”-1″ role=”dialog” aria-labelled”): ng:///AppModule/InfoComponent.html@0:13
at syntaxError (compiler.js:2420)
at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:11987)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js:27259)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js:27246)
at compiler.js:27189
at Set.forEach ()
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:27189)
at compiler.js:27099
at Object.then (compiler.js:2411)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:27098)
at syntaxError (compiler.js:2420)
at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:11987)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js:27259)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js:27246)
at compiler.js:27189
at Set.forEach (
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:27189)
at compiler.js:27099
at Object.then (compiler.js:2411)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:27098)