so... I have the latest version of nx (11.1.5) running in a new workspace (--preset empty
) running and I want to add a new buildable angular library.
nx g @nrwl/angular:library --buildable --style scss --name my-lib
The library is created and seems to be alright. Next, I want to build that library without changing something on the code using:
nx build my-lib
My expectation is, that this runs through without any problems. Doesn't make sense to build an empty module, but should work, right?
But the build exits with the following error message:
No provider for InjectionToken ng.v5.stylesheetProcessor! (InjectionToken nx.v1.packageTransform -> InjectionToken nx.v1.entryPointTransform -> InjectionToken ng.v5.compileNgcTransform -> InjectionToken ng.v5.stylesheetProcessor)
Even when I add components and export them or import the module in an app, the error shows up.
What am I missing here? Is this a bug?
It's also reproducible in the example repo: https://github.com/nrwl/nx-examples
Greetings
It seems there is a fix on the way...