question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

create-nx-plugin causes error Cannot find project 'plugin-name-e2e' in 'apps/plugin-name-e2e'

See original GitHub issue

Please 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

  1. run create-nx-plugin on a workspace.
  2. 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:closed
  • Created 4 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wickstargazercommented, Feb 22, 2020

OK! i found the error 😃 OS : Windows when generating the test, the e2e section in config is updated with the following sourceRoot

 "sourceRoot": "apps\\plugin-name-e2e/src",

it should be

 "sourceRoot": "apps/plugin-name-e2e/src",

Thats about it… Thankz for the confirmation tha things works! @Cammisuli

0reactions
hgschwibbecommented, May 21, 2021

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) · false

Then run: $ ng g @nrwl/angular:stories --name=libraryXyz Error: Cannot find project 'libraryXyz-e2e'

Read more comments on GitHub >

github_iconTop Results From Across the Web

error upstream plugin – custom fields section - WordPress.org
I tried to reactivate the custom field plugin but it always gives me the same error (a gray screen that says “cannot find...
Read more >
Sonobuoy Plugins - Documentation
When you first run Sonobuoy, an aggregator pod is created in the cluster which reads the configuration you've chosen and launches each plugin....
Read more >
iOS unable to find plugins, Android fine - xcode - Stack Overflow
In XCode, goto Build Phases -> open the Compiled Sources dropdown. Click + and add the missing plugin .m file that should be...
Read more >
Error #10008-D: cannot find file - Code Composer Studio forum
However, I run into the build-up error with the log below. It looks .obj file is not generated. Could you advise how to...
Read more >
Developing Custom Gradle Plugins
However, the plugin is not visible outside the build script, and so you cannot reuse the plugin outside the build script it is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found