nxext / nx-extensions

Nx Extensions for Stencil, Svelte, SolidJS, Preact, Ionic, and Capacitor
MIT License
465 stars 102 forks source link

Ionic-Angular: faulty route insertion in `app-routing.module` when running `nx generate page` #882

Open SimonCockx opened 1 year ago

SimonCockx commented 1 year ago

Describe the bug When I generate a page, the route to the page is inserted incorrectly into the app-routing.module.ts array of routes. There is a syntax error. E.g., I just generated a page with name personen-table, and this is what I got:

afbeelding

As a result, there also is an error during generation Could not format apps/platform-web/src/app/app-routing.module.ts. Error: "Property assignment expected."

To Reproduce Run nx generate page.

Expected behavior The routes are modified correctly.