gpt4 book ai didi

angular - ngx-bootstrap - 找不到模块 'ngx-bootstrap/component-loader'

转载 作者:行者123 更新时间:2023-12-04 01:50:17 38 4
gpt4 key购买 nike

我目前正在开发 Angular CLI 应用程序。几个小时前我完成了一些部分,关闭项目,现在我想再次运行项目以继续我的工作。但是我没有成功编译项目,而是在 ngx-bootstrap 模块上遇到错误。

    ERROR in node_modules/ngx-bootstrap/dropdown/bs-dropdown.directive.d.ts(2,40): error TS2307: Cannot find module 'ngx-bootstrap/component-loader'.
node_modules/ngx-bootstrap/dropdown/bs-dropdown.state.d.ts(2,32): error TS2307: Cannot find module 'ngx-bootstrap/component-loader'.
node_modules/ngx-bootstrap/public_api.d.ts(2,26): error TS2307: Cannot find module 'ngx-bootstrap/utils'.
node_modules/ngx-bootstrap/public_api.d.ts(3,95): error TS2307: Cannot find module 'ngx-bootstrap/accordion'.
node_modules/ngx-bootstrap/public_api.d.ts(4,58): error TS2307: Cannot find module 'ngx-bootstrap/alert'.
node_modules/ngx-bootstrap/public_api.d.ts(5,78): error TS2307: Cannot find module 'ngx-bootstrap/buttons'.
node_modules/ngx-bootstrap/public_api.d.ts(6,83): error TS2307: Cannot find module 'ngx-bootstrap/carousel'.
node_modules/ngx-bootstrap/public_api.d.ts(7,51): error TS2307: Cannot find module 'ngx-bootstrap/collapse'.
node_modules/ngx-bootstrap/public_api.d.ts(8,284): error TS2307: Cannot find module 'ngx-bootstrap/datepicker'.
node_modules/ngx-bootstrap/public_api.d.ts(9,133): error TS2307: Cannot find module 'ngx-bootstrap/modal'.
node_modules/ngx-bootstrap/public_api.d.ts(11,107): error TS2307: Cannot find module 'ngx-bootstrap/pagination'.
node_modules/ngx-bootstrap/public_api.d.ts(12,90): error TS2307: Cannot find module 'ngx-bootstrap/progressbar'.
node_modules/ngx-bootstrap/public_api.d.ts(13,47): error TS2307: Cannot find module 'ngx-bootstrap/rating'.
node_modules/ngx-bootstrap/public_api.d.ts(14,102): error TS2307: Cannot find module 'ngx-bootstrap/sortable'.
node_modules/ngx-bootstrap/public_api.d.ts(15,117): error TS2307: Cannot find module 'ngx-bootstrap/tabs'.
node_modules/ngx-bootstrap/public_api.d.ts(16,73): error TS2307: Cannot find module 'ngx-bootstrap/timepicker'.
node_modules/ngx-bootstrap/public_api.d.ts(17,91): error TS2307: Cannot find module 'ngx-bootstrap/tooltip'.
node_modules/ngx-bootstrap/public_api.d.ts(18,116): error TS2307: Cannot find module 'ngx-bootstrap/typeahead'.
node_modules/ngx-bootstrap/public_api.d.ts(19,91): error TS2307: Cannot find module 'ngx-bootstrap/popover'.
node_modules/ngx-bootstrap/public_api.d.ts(20,146): error TS2307: Cannot find module 'ngx-bootstrap/utils'.
node_modules/ngx-bootstrap/public_api.d.ts(21,85): error TS2307: Cannot find module 'ngx-bootstrap/component-loader'.
node_modules/ngx-bootstrap/public_api.d.ts(22,87): error TS2307: Cannot find module 'ngx-bootstrap/positioning'.
node_modules/ngx-bootstrap/public_api.d.ts(25,15): error TS2307: Cannot find module 'ngx-bootstrap/locale'.

我尝试安装 ngx-bootstrap 模块,但这没有帮助。有人遇到过和我一样的问题吗?

最佳答案

将@angular/cli 和@angular/core 更新到 v7 后,问题消失了。

Angular CLI:7.0.6节点:8.9.4操作系统:win32 x64 Angular :7.1.0

关于angular - ngx-bootstrap - 找不到模块 'ngx-bootstrap/component-loader',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53461747/

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com