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
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
11
Description
After migration to Angular 14 its no longer possible to create a library with nested directory structure. I'm working on a project where feature is usually split into multiple directories, for example:
projects/libs/feature-name/
app
shared
model
store
After migration when I try to create a library with a such scheme it is no longer possible, e.g.:
$ npx ng generate library projects/libs/feature/model ‹ruby-2.6.6›
Schematic input does not validate against the Schema: {"name":"projects/libs/feature/model"}
Errors:
Data path "/name" must match pattern "^(?:@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*/)?[a-zA-Z0-9-~][a-zA-Z0-9-._~]*$".
I know that there is a workaround that when we make a path alias to projects/libs/feature-name it will work, e.g.:
$ npx ng generate library @feature-alias/model
In this project its very inconvenient since we have 100 different features and we would need to alias almost each one of it.
Minimal Reproduction
# create empty workspace
ng new my-workspace --create-application false# in that workspace create a library with nested directoriescd my-workspace/my-project
npx ng generate library projects/libs/feature/model
Exception or Error
Schematic input does not validate against the Schema: {"name":"projects/libs/feature/model"}
Errors:
Data path "/name" must match pattern "^(?:@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*/)?[a-zA-Z0-9-~][a-zA-Z0-9-._~]*$".
Command
generate
Is this a regression?
The previous version in which this bug was not present was
11
Description
After migration to Angular 14 its no longer possible to create a library with nested directory structure. I'm working on a project where feature is usually split into multiple directories, for example:
projects/libs/feature-name/
After migration when I try to create a library with a such scheme it is no longer possible, e.g.:
I know that there is a workaround that when we make a path alias to projects/libs/feature-name it will work, e.g.:
In this project its very inconvenient since we have 100 different features and we would need to alias almost each one of it.
Minimal Reproduction
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: