You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following command generates imports that does not exist:
nx g @nx/angular:ngrx-feature-store --name supply-chain/supply-chain --facade true
The feature state was successfully generated in a subdirectory below of the +state directory like previous nx versions did before
(src/app/+state/supply-chain). Now the files below the subdirectory imports from './supply-chain/supply-chain.*' instead of from './supply-chain.*'.
Also the entity name generation took the directory into account:
It generates the entity name SupplyChainSupplyChainEntity instead of SupplyChainEntity.
A workaround might be generating with the --directory parameter, but this overrides the +state root directory. So you have always to prefix it with +state which leads to typing errors: nx g @nx/angular:ngrx-feature-store --directory +state/supply-chain --name supply-chain --facade true
Its up to you how to fix it:
be compatible with the old approach and take paths into account while using the --name parameter
or provide an additional --subdirectory parameter that does not override/break the default +state root directory.
Expected Behavior
Imports could be resolved.
Generated code does not prefix everything with the directory names.
Steps to Reproduce
nx g @nx/angular:ngrx-feature-store --name supply-chain/supply-chain --facade true
hgschwibbe
changed the title
Feature store generator generates imports that does not exist
Feature store generator generates trash if the name contains directories
Aug 30, 2023
hgschwibbe
changed the title
Feature store generator generates trash if the name contains directories
Feature store generator generates trash if the name contains directory paths
Aug 30, 2023
hgschwibbe
changed the title
Feature store generator generates trash if the name contains directory paths
Feature store generator generates gibberish if the name contains directory paths
Aug 30, 2023
hgschwibbe
changed the title
Feature store generator generates gibberish if the name contains directory paths
Feature store generator generates gibberish if name contains directories
Aug 30, 2023
Coly010
changed the title
Feature store generator generates gibberish if name contains directories
Feature store generator generates incorrect imports if name contains directories
Aug 30, 2023
Coly010
changed the title
Feature store generator generates incorrect imports if name contains directories
Feature store generator generates incorrect imports and appends directory name to tokens if --name contains directories
Aug 30, 2023
Current Behavior
The following command generates imports that does not exist:
nx g @nx/angular:ngrx-feature-store --name supply-chain/supply-chain --facade true
The feature state was successfully generated in a subdirectory below of the +state directory like previous nx versions did before
(
src/app/+state/supply-chain
). Now the files below the subdirectory importsfrom './supply-chain/supply-chain.*'
instead offrom './supply-chain.*'
.For Example:
Also the entity name generation took the directory into account:
It generates the entity name
SupplyChainSupplyChainEntity
instead ofSupplyChainEntity
.A workaround might be generating with the --directory parameter, but this overrides the +state root directory. So you have always to prefix it with +state which leads to typing errors:
nx g @nx/angular:ngrx-feature-store --directory +state/supply-chain --name supply-chain --facade true
Its up to you how to fix it:
--name
parameter--subdirectory
parameter that does not override/break the default +state root directory.Expected Behavior
Imports could be resolved.
Generated code does not prefix everything with the directory names.
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: