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
{{ message }}
Repository navigation
ng generate component - catch clause variable is not an Error instance #23631
After adding server side rendering I can't create new component with cli command.
A clear and concise description of the problem... -->
🔬 Minimal Reproduction
npm i -g @angular/cli
ng new myapp && cd myapp
ng add @nguniversal/express-engine
ng generate component test
🔥 Exception or Error
An unhandled exception occurred: catch clause variable is not an Error instance
[error] AssertionError [ERR_ASSERTION]: catch clause variable is not an Error instance
EDIT :
I tried with angular cli 14.0.7 and i have this error : More than one module matches. Use the '--skip-import' option to skip importing the component into the closest module or use the module option to specify a module.
When i use 14.1 again with --module app it working fine
Activity
damient commentedon Jul 24, 2022
I have the same error with angular 14.1
EDIT :
I tried with angular cli 14.0.7 and i have this error :
More than one module matches. Use the '--skip-import' option to skip importing the component into the closest module or use the module option to specify a module.When i use 14.1 again with
--module appit working fineReponseDigitale commentedon Jul 25, 2022
Same behaviour when trying to generate a Pipe
ng generate pipe foo.And same workaround solution worked fine :
ng generate pipe foo --module appfix(@angular/cli): catch clause variable is not an Error instance
fix(@angular-devkit/build-angular): catch clause variable is not an E…
fix(@angular/cli): catch clause variable is not an Error instance
fix(@angular-devkit/build-angular): catch clause variable is not an E…
fix(@angular/cli): catch clause variable is not an Error instance
fix(@angular-devkit/build-angular): catch clause variable is not an E…
angular-automatic-lock-bot commentedon Aug 28, 2022
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.