stylePreprocessorOptions not working on @Angular/cli 7
I had the same problem when running tests, the solution was to add the same style stylePreprocessorOptions
to the test configuration in angular.json as well as the build configuration
I've found the problem.
I was loading themes/client-X
instead of src/themes/client-X
inside the angular.json
.