Sp-dev-docs: Error creating web part named 'Web part' using generator v1.3.4

Created on 1 Nov 2017  路  2Comments  路  Source: SharePoint/sp-dev-docs

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

Be able to scaffold a web part no matter its name.

Observed Behavior

When creating web part named 'Web part', the generator scaffolds broken files. When you try to build the project, you get the following error:

Error - typescript - src/webparts/WebPart.ts(10,13): error TS1005: '=' expected.

This is caused by the following (invalid) file tree (notice missing file names in the SCSS and TSX files):

src/
|____webparts
| |____components
| | |____.module.scss
| | |____.tsx
| | |____IProps.ts
| |____loc
| | |____en-us.js
| | |____mystrings.d.ts
| |____test
| | |____WebPart.test.ts
| |____WebPart.manifest.json
| |____WebPart.ts

Steps to Reproduce

  • create new project
  • add web part
  • name the web part Web part
  • gulp bundle
  • 馃挜
generator bug-suspected

Most helpful comment

@waldekmastykarz , thank you for reporting the issue. We are able to repro it and are trying to get it fixed quickly.

All 2 comments

@waldekmastykarz , thank you for reporting the issue. We are able to repro it and are trying to get it fixed quickly.

This issue is being closed as part of an issue list cleanup project. Issues with no activity in the past 6 months that aren't tracked by engineering as bugs were closed as part of this inititive. If this is still an issue, please follow the steps outlined to re-open the issue.

Was this page helpful?
0 / 5 - 0 ratings