Be able to scaffold a web part no matter its name.
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
Web partgulp bundle@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.
Most helpful comment
@waldekmastykarz , thank you for reporting the issue. We are able to repro it and are trying to get it fixed quickly.