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
When attempting to add @angular/fire to a project, I am able to go through the feature selection process but after confirming everything, I run into an error.
Expected Behavior
The @angular/fire module to be successfully added to the project with selected features.
SynchronousDelegateExpectedException [Error]: Expected a synchronous delegate but got an asynchronous one.
at SyncDelegateHost._doSyncCall (F:\nx-angular-fire\node_modules\@angular-devkit\core\src\virtual-fs\host\sync.js:39:19)
at SyncDelegateHost.read (F:\nx-angular-fire\node_modules\@angular-devkit\core\src\virtual-fs\host\sync.js:57:21)
at LazyFileEntry._load (F:\nx-angular-fire\node_modules\@angular-devkit\schematics\src\tree\host-tree.js:252:80)
at LazyFileEntry.get content [as content] (F:\nx-angular-fire\node_modules\@angular-devkit\schematics\src\tree\entry.js:34:55)
at HostTree.read (F:\nx-angular-fire\node_modules\@angular-devkit\schematics\src\tree\host-tree.js:211:30)
at getWorkspace (F:\nx-angular-fire\node_modules\@angular\fire\schematics\utils.js:23:39)
at Object.getProject (F:\nx-angular-fire\node_modules\@angular\fire\schematics\utils.js:39:27)
at F:\nx-angular-fire\node_modules\@angular\fire\schematics\setup\index.js:105:76
at Generator.next (<anonymous>)
at fulfilled (F:\nx-angular-fire\node_modules\@angular\fire\schematics\setup\index.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
> NX Expected a synchronous delegate but got an asynchronous one.
Pass --verbose to see the stacktrace.
Additional Information
Just started using this tonight so unsure of other things I could try. I saw in another thread that a new version may have a fix so I tried with nx@15.8.0-beta.2 but no luck
The text was updated successfully, but these errors were encountered:
That issue was fixed in #15137. I migrated the repo you provided to 15.8.0-beta.2 and the generation works as expected. I'm unsure how you tried with that version, make sure in that repo you run:
nx migrate next && npm i
After that, running the generation worked for me. If you still have issues, please update your repro using 15.8.0-beta.2 where I can reproduce the issue and I'll have a look.
Current Behavior
When attempting to add @angular/fire to a project, I am able to go through the feature selection process but after confirming everything, I run into an error.
![image](https://user-images.githubusercontent.com/3621660/220587355-46dc4d42-93fb-47ca-810f-516a8697fb3a.png)
Expected Behavior
The @angular/fire module to be successfully added to the project with selected features.
GitHub Repo
https://github.com/kegbuna/nx-angular-fire
Steps to Reproduce
ng new nx-angular-fire
npm nx@latest init
npm install @angular/fire && npx nx g @angular/fire:ng-add
Nx Report
Failure Logs
Additional Information
Just started using this tonight so unsure of other things I could try. I saw in another thread that a new version may have a fix so I tried with
nx@15.8.0-beta.2
but no luckThe text was updated successfully, but these errors were encountered: