We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Doing:
await libraryGenerator(tree, { directory, unitTestRunner: UnitTestRunner.Jest, name, prefix: 'custom prefix', tags: `type:tag`, routing: true, strict: true, setParserOptionsProject: true });
(only other tasks invoked in the custom generator are formatFiles and installPackagesTask from '@nx/devkit')
May result in following files:
index.ts
export * from './lib/custom-app-feature-test-lib.module'; export * from './lib/lib.routes'; export * from './lib/lib.routes';
custom-app-feature-test-lib.module.ts
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule, RouterModule, Route } from '@angular/router'; import { customAppFeatureTestLibRoutes } from './lib.routes'; @NgModule({ imports: [CommonModule, RouterModule.forChild(customAppFeatureTestLibRoutes), RouterModule] }) export class CustomAppFeatureTestLibModule {}
See the duplicate router modules.
No duplicate references to lib.routes.ts in index.ts file. No duplicate references to RouterModule in module ts file.
https://github.com/Erbenos/nx-duplicate-references-bug
> NX Report complete - copy this into the issue template Node : 16.15.1 OS : darwin-arm64 yarn : 1.22.19 nx : 16.7.0-rc.1 @nx/js : 16.7.0-rc.1 @nx/jest : 16.7.0-rc.1 @nx/linter : 16.7.0-rc.1 @nx/workspace : 16.7.0-rc.1 @nx/angular : 16.7.0-rc.1 @nx/cypress : 16.7.0-rc.1 @nx/devkit : 16.7.0-rc.1 @nx/eslint-plugin : 16.7.0-rc.1 @nx/react : 16.7.0-rc.1 @nrwl/tao : 16.7.0-rc.1 @nx/web : 16.7.0-rc.1 @nx/webpack : 16.7.0-rc.1 nx-cloud : 16.3.0 typescript : 5.1.3 --------------------------------------- Community plugins: @ngrx/component-store : 16.0.0 @ngrx/effects : 16.0.0 @ngrx/entity : 16.0.0 @ngrx/router-store : 16.0.0 @ngrx/store : 16.0.0 @ngrx/store-devtools : 16.0.0
None.
No response
The text was updated successfully, but these errors were encountered:
Workaround is to use standalone: true as that does not have the duplicate reference issue.
Sorry, something went wrong.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
leosvelperez
Successfully merging a pull request may close this issue.
Current Behavior
Doing:
(only other tasks invoked in the custom generator are formatFiles and installPackagesTask from '@nx/devkit')
May result in following files:
index.ts
custom-app-feature-test-lib.module.ts
See the duplicate router modules.
Expected Behavior
No duplicate references to lib.routes.ts in index.ts file.
No duplicate references to RouterModule in module ts file.
GitHub Repo
https://github.com/Erbenos/nx-duplicate-references-bug
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: