如何解决core.js:6156 错误错误:未捕获承诺:错误:NG0201:在 NodeInjector 中找不到 SlickCarouselComponent 的提供程序
我正在尝试将 ngx-slick-carousel 集成到我的项目中。我按照官方 documentation 中提到的所有步骤进行操作,但它抛出了此错误,也尝试使用此 Question 解决方案,但没有运气
我的代码
<ngx-slick-carousel class="carousel"
#slickModal="slick-carousel"
[config]="slideConfig"
(init)="slickInit($event)"
(breakpoint)="breakpoint($event)"
(afterChange)="afterChange($event)"
(beforeChange)="beforeChange($event)">
<div class="featured_slider slider">
<!-- Slider Item -->
<div class="featured_slider_item" ngxSlickItem>
<div class="border_active"></div>
<div class="product_item discount d-flex flex-column align-items-center justify-content-center text-center">
<div class="product_image d-flex flex-column align-items-center justify-content-center"><img src="assets/images/featured_1.png" alt=""></div>
<div class="product_content">
<div class="product_price discount">$225<span>$300</span></div>
<div class="product_name"><div><a href="product.html">Huawei MediaPad...</a></div></div>
<div class="product_extras">
<div class="product_color">
<input type="radio" checked name="product_color" style="background:#b19c83">
<input type="radio" name="product_color" style="background:#000000">
<input type="radio" name="product_color" style="background:#999999">
</div>
<button class="product_cart_button">Add to Cart</button>
</div>
</div>
<div class="product_fav"><i class="fas fa-heart"></i></div>
<ul class="product_marks">
<li class="product_mark product_discount">-25%</li>
<li class="product_mark product_new">new</li>
</ul>
</div>
</div>
</ngx-slick-carousel>
任何人都对此有任何想法。
提前致谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。