-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import default exported generators #12434
Comments
I was just noticing this today as I was attempting to create a custom generator that would use the angular remote generator. |
Coly010
added a commit
to Coly010/nx
that referenced
this issue
Oct 7, 2022
AgentEnder
pushed a commit
that referenced
this issue
Oct 7, 2022
FrozenPandaz
pushed a commit
that referenced
this issue
Oct 7, 2022
FrozenPandaz
pushed a commit
that referenced
this issue
Oct 11, 2022
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: