Closed BartKoppelmans closed 2 years ago
I was just noticing this today as I was attempting to create a custom generator that would use the angular remote generator.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
When importing a default-exported generator such as the
@nrwl/angular:remote
generator, it cannot be found as exported through the barrel. The importimport { remote } from '@nrwl/angular/generators'
thus fails to load. Generators that are both exported and default exported (such as@nrwl/workspace:library
) seem to work just fine.Deep exports such as
import remote from '@nrwl/angular/src/generators/remote/remote'
orimport { remote } from '@nrwl/angular/src/generators/remote/remote'
seem to fail as will, since thepackage.json
does not export them (as was expected).Upon first inspection, this seems to also apply other generators following the same export style:
Expected Behavior
The import should be exported normally, as well as default-exported.
Steps to Reproduce
remote
generator.Failure Logs
Environment