maciejtreder / ng-toolkit

:star: Angular tool-box! Start your PWA in two steps! Add Serverless support for existing projects and much more
https://www.angular-universal-pwa.maciejtreder.com
MIT License
1.12k stars 156 forks source link

ERROR MESSAGE: Path "/server.ts" already exist. #846

Open progtarek opened 3 years ago

progtarek commented 3 years ago

I'm getting this error when I am trying to run "ng add @ng-toolkit/serverless --provider aws" on a new Angular 11.0.1 project.

ERROR STACKTRACE: Error: Path "/server.ts" already exist. at SwitchMapSubscriber.project (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\@angular-devkit\core\src\virtual-fs\host\record.js:209:42) at SwitchMapSubscriber._next (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\operators\switchMap.js:47:27) at SwitchMapSubscriber.Subscriber.next (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\Subscriber.js:66:18) at DefaultIfEmptySubscriber._next (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\operators\defaultIfEmpty.js:41:26) at DefaultIfEmptySubscriber.Subscriber.next (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\Subscriber.js:66:18) at TakeLastSubscriber._complete (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\operators\takeLast.js:71:29) at TakeLastSubscriber.Subscriber.complete (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\Subscriber.js:78:18) at ScanSubscriber.Subscriber._complete (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\Subscriber.js:96:26) at ScanSubscriber.Subscriber.complete (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\Subscriber.js:78:18) at MergeMapSubscriber._complete (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\operators\mergeMap.js:88:30) at MergeMapSubscriber.Subscriber.complete (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\Subscriber.js:78:18) at Observable._subscribe (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\util\subscribeToArray.js:7:16) at Observable._trySubscribe (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\Observable.js:44:25) at Observable.subscribe (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\Observable.js:30:22) at MergeMapOperator.call (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\operators\mergeMap.js:37:23) at Observable.subscribe (D:\qurba\qurba-code\qurba-client\new\qurba\node_modules\rxjs\internal\Observable.js:25:31)


[ * ] Bug report  
[ ] Feature request
[ ] Documentation issue or request

In package

ng add @ng-toolkit/serverless --provider aws
[ ] @ng-toolkit/init
[ * ] @ng-toolkit/serverless
[ ] @ng-toolkit/universal
[ ] @ng-toolkit/pwa
[ ] @ng-toolkit/firebug

Minimal reproduction of the problem with instructions

I created new project then try to run "ng add @ng-toolkit/serverless --provider aws"

Environment


Angular version: 11.0.1


- Node version: 12
- Platform:  Windows 

Others:

Zaklinatel commented 3 years ago

Same problem here