create-nx-plugin causes error Cannot find project 'plugin-name-e2e' in 'apps/plugin-name-e2e'
See original GitHub issuePlease make sure you have read the submission guidelines before posting an issue
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- I am running the latest version
- I checked the documentation (nx.dev) and found no answer
- I checked to make sure that this issue has not already been filed
- I’m reporting the issue to the correct repository (not related to React, Angular or any dependency)
Expected Behavior
workspace-lint should work without errors.
Current Behavior
What is the current behavior?
> NX ERROR The angular.json file is out of sync
- Cannot find project 'plugin-name-e2e' in 'apps/plugin-name-e2e'
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
- run create-nx-plugin on a workspace.
- run workspace-lint
If you can provide steps to reproduce from scratch, that would be enormously appreciated (i.e. where the first step is npx create-nx-workspace@latest repro-workspace
)
Context
Please provide any relevant information about your setup:
> NX Report complete - copy this into the issue template
@nrwl/angular : 8.12.0
@nrwl/cli : 8.12.0
@nrwl/cypress : 8.12.0
@nrwl/eslint-plugin-nx : Not Found
@nrwl/express : Not Found
@nrwl/jest : 8.12.0
@nrwl/linter : 8.12.2
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : 8.12.0
@nrwl/react : Not Found
@nrwl/schematics : 8.8.3
@nrwl/tao : 8.12.0
@nrwl/web : 8.12.0
@nrwl/workspace : 8.12.0
typescript : 3.5.3
A minimal reproduction scenario allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem.
Failure Logs
> NX ERROR The angular.json file is out of sync
- Cannot find project 'aws-cdk-e2e' in 'apps/aws-cdk-e2e'
Other
Any other relevant information that will help us help you.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (4 by maintainers)
OK! i found the error 😃 OS : Windows when generating the test, the
e2e
section in config is updated with the followingsourceRoot
it should be
Thats about it… Thankz for the confirmation tha things works! @Cammisuli
Same problem here. I reproduced it by creating a storybook configuration without e2e first:
$ ng g @nrwl/angular:storybook-configuration libraryXyz
✔ Configure a cypress e2e app to run against the storybook instance? (Y/n) · false ✔ Automatically generate *.stories.ts files for components declared in this project? (Y/n) · true ✔ Automatically generate *.spec.ts files in the cypress e2e app generated by the cypress-configure generator? (Y/n) · falseThen run:
$ ng g @nrwl/angular:stories --name=libraryXyz
Error: Cannot find project 'libraryXyz-e2e'