pagesource / component-generator

Generate-plop is a simple cli for generating new components really fast and consistently.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate Page Issue

pankajthakur950 opened this issue · comments

Creating new Page using ‘npm run generate’ generate Page component with error.

Steps to reproduce:

  1. Run command: 'npm/yarn run generate'
  2. Select the app in which you want to generate
  3. Enter the name of page(e.g. Details)
  4. Page is created under pages directory in selected app and route entry in route page.
  5. index.js file in Pages directory has two issues:
  • while page generation, console shows linting error for missing semicolon.

MicrosoftTeams-image (2)

  • created page refers the file in path ‘../components/templates/DetailsName’ which is not created during generate command.

MicrosoftTeams-image (3)

Issue fixed i version - "version": "1.1.1",