【问题标题】:ERROR in node_modules/ng2-bs3-modal/components/modal-header.d.ts.ModalHeaderComponent.html(3,107): Property 'modal' is private and it only accessiblenode_modules/ng2-bs3-modal/components/modal-header.d.ts.ModalHeaderComponent.html(3,107) 中的错误:属性“modal”是私有的,只能访问
【发布时间】:2021-09-05 02:18:00
【问题描述】:

我遇到过错误,它在开发中工作得非常好,但在生产中它会抛出一个错误

ERROR in node_modules/ng2-bs3-modal/components/modal-header.d.ts.ModalHeaderComponent.html(3,107): Property 'modal' is private and only accessible within class 'ModalHeaderComponent'.
node_modules/ng2-bs3-modal/components/modal-footer.d.ts.ModalFooterComponent.html(4,107): Property 'modal' is private and only accessible within class 'ModalFooterComponent'.
node_modules/ng2-bs3-modal/components/modal-footer.d.ts.ModalFooterComponent.html(5,86): Property 'modal' is private and only accessible within class 'ModalFooterComponent'.

【问题讨论】:

标签: javascript angular typescript


【解决方案1】:

我建议你看这个问题https://github.com/angular/angular/issues/11422,它可能有用

【讨论】:

    猜你喜欢
    • 2020-01-11
    • 2016-10-07
    • 1970-01-01
    • 1970-01-01
    • 2016-09-09
    • 2017-01-16
    • 2013-03-30
    • 2020-06-08
    相关资源
    最近更新 更多