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
Description
When running ng add @ngx-formly/schematics, the installation fails if the root app module is not in the default folder, even if you provide the --module option. You need to provide a relative path to /src/app, which may not even exist (eg in my case), for it to function.
Minimal Reproduction
ng new formly-schematic-test --minimal -g --routing=false --style=scss
cd formly-schematic-test; mv src/app src/root
# Edit src/main.ts to include AppModule from the proper path.
ng add @ngx-formly/schematics --module="root/app.module.ts"
Expected result
The schematic will find the specified module by searching from project.sourceRoot, or using the working directory plus the relative path provided, and successfully configure the project.
Actual result
The schematic fails with Specified module does not exist.
Installation succeeds if --module="../root/app.module.ts" is provided.
Your Environment
Angular version: 9.1.9
Formly version: 5.6.2
The text was updated successfully, but these errors were encountered:
Description
When running
ng add @ngx-formly/schematics
, the installation fails if the root app module is not in the default folder, even if you provide the --module option. You need to provide a relative path to/src/app
, which may not even exist (eg in my case), for it to function.Minimal Reproduction
Expected result
The schematic will find the specified module by searching from
project.sourceRoot
, or using the working directory plus the relative path provided, and successfully configure the project.Actual result
The schematic fails with
Specified module does not exist
.Installation succeeds if
--module="../root/app.module.ts"
is provided.Your Environment
The text was updated successfully, but these errors were encountered: