2
I am developing an Angular 10 library. This library uses Swiper JS as a dependency. My library should import css styles from Swiper.
I import Swiper styles from node_modules
using the @import
scss. This works well using the command ng test
.
But when I make one ng build
and import my local library into my application, I get an error in the javascript console. Bug says Swiper styles not found in node_modules
.
How should I import css styles from a library from within node_modules
into an Angular library 10?
Is that in the library or in the app? There is no . angular-cli.json file in either. Remember that both are Angular 10 projects. You’re referring to the angular.json?
– Natanael