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 generating new angular remote with host specified this error appears: Routing file (apps/host/src/app/app.routes.ts) does not a routing configuration. Please ensure the parent contains a routing configuration.
For angular application we are using app.routes.ts file that has a const with a type Routes (https://github.com/angular/angular/blob/main/packages/router/src/models.ts#L27). However @nrwl/angular:remote only works when routes const is of type Route[]. Since Routes and Route[] are practically the same thing generator should support both.
Expected Behavior
@nrwl/angular:remote should work even when app.routes.ts routes type is Routes. It was working before nx 15 update.
Steps to Reproduce
Repository to use for reproduction: https://github.com/gytislaz/nx-workspace-example
Try to generate new remote app and specify host that uses Routes type in app.routes.ts file.
For example: npx nx generate @nrwl/angular:remote remote --host=host --no-interactive --dry-run
Failure Logs
Routing file (apps/host/src/app/app.routes.ts) does not a routing configuration. Please ensure the parent contains a routing configuration.
Environment
Node : 16.17.0
OS : darwin arm64
npm : 8.15.0
nx : 15.0.0
@nrwl/angular : 15.0.0
@nrwl/cypress : 15.0.0
@nrwl/detox : Not Found
@nrwl/devkit : 15.0.0
@nrwl/esbuild : Not Found
@nrwl/eslint-plugin-nx : 15.0.0
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 15.0.0
@nrwl/js : 15.0.0
@nrwl/linter : 15.0.0
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : 15.0.0
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/rollup : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : 15.0.0
@nrwl/web : Not Found
@nrwl/webpack : 15.0.0
@nrwl/workspace : 15.0.0
typescript : 4.8.4
The text was updated successfully, but these errors were encountered:
Current Behavior
When generating new angular remote with host specified this error appears:
Routing file (apps/host/src/app/app.routes.ts) does not a routing configuration. Please ensure the parent contains a routing configuration.
For angular application we are using app.routes.ts file that has a const with a type Routes (https://github.com/angular/angular/blob/main/packages/router/src/models.ts#L27). However @nrwl/angular:remote only works when routes const is of type Route[]. Since Routes and Route[] are practically the same thing generator should support both.
Expected Behavior
@nrwl/angular:remote should work even when app.routes.ts routes type is Routes. It was working before nx 15 update.
Steps to Reproduce
Repository to use for reproduction: https://github.com/gytislaz/nx-workspace-example
Try to generate new remote app and specify host that uses Routes type in app.routes.ts file.
For example:
npx nx generate @nrwl/angular:remote remote --host=host --no-interactive --dry-run
Failure Logs
Routing file (apps/host/src/app/app.routes.ts) does not a routing configuration. Please ensure the parent contains a routing configuration.
Environment
Node : 16.17.0
OS : darwin arm64
npm : 8.15.0
nx : 15.0.0
@nrwl/angular : 15.0.0
@nrwl/cypress : 15.0.0
@nrwl/detox : Not Found
@nrwl/devkit : 15.0.0
@nrwl/esbuild : Not Found
@nrwl/eslint-plugin-nx : 15.0.0
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 15.0.0
@nrwl/js : 15.0.0
@nrwl/linter : 15.0.0
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : 15.0.0
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/rollup : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : 15.0.0
@nrwl/web : Not Found
@nrwl/webpack : 15.0.0
@nrwl/workspace : 15.0.0
typescript : 4.8.4
The text was updated successfully, but these errors were encountered: