-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup-ct failing with Angular 13 and Nx v13 #148
Comments
Is there a workaround at this time? I have an Angular 13 app in Nx 13 monorepo and even running the default Angular CLI generator fails with the same issue ( |
I would need to investigate the installation generator, but the repo itself is using Angular 13 and Nx 13 so you can configure it by hand as a workaround. |
Thanks for looking into this! If you have the time, could you explain a bit more what you meant by "configure it by hand"? What would need to be configured as a workaround? I could even go off of a general starting point if I knew where to look. |
I guess the issue is related to the NX 13 migration of "moving the projects array from nx.json to workspace.json". @ maintainers: You probably want to update your @nrwl/devkit dependency so that it will detect if users already did that migration or not. Workaround working for me:
|
The dependency@nrwl/devkit is up to date. I don't reproduce this. Can you confirm it does not occur with the last version? |
@edbzn I was talking about this one: https://github.com/jscutlery/devkit/blob/main/packages/cypress-angular/package.json, I can confirm that the setup-ct step works. I did not get it to run yet though. |
Hi @maxfriedmannm, sorry for responding so late. |
I have a project on Nx and Angular on v14 and I get the same error. Our mono-repo uses Any way support can be added for Nx monorepos not using the nx.json file? |
Is there a guide to manually configuring this? Is it similar to the way it was done on the old GitHub? |
I'm trying to configure cypress-angular but am running into this issue:
Cannot set property 'demo' of undefined
demo-app
and an Angular app nameddemo
Running with
--verbose
I get the following stack trace:It appears that this is failing because it is trying to read
nx.json
to modify the projects, but projects are not defined there in Nx v13. Trying to manually add projects to nx.json yields:What is interesting is that, if I create an empty workspace first, and THEN add the angular application, this process seems to work.
The text was updated successfully, but these errors were encountered: