Running yo @microsoft/sharepoint and setting a webpart name, the webpart name should be validated before the project will be created.
Running yo @microsoft/sharepoint and setting a webpart name like "20170210Spfxrc0" will result in invalid class names.
gulp serve will fail with the following typescript errors.
Error - typescript - src\webparts\20170210Spfxrc0\20170210Spfxrc0WebPart.ts(13,2
2): error TS1005: '{' expected.
Error - typescript - src\webparts\20170210Spfxrc0\20170210Spfxrc0WebPart.ts(13,3
0): error TS1005: ';' expected.
Error - typescript - src\webparts\20170210Spfxrc0\20170210Spfxrc0WebPart.ts(13,4
5): error TS1005: ';' expected.
Error - typescript - src\webparts\20170210Spfxrc0\20170210Spfxrc0WebPart.ts(37,3
): error TS1005: ',' expected.
Error - typescript - src\webparts\20170210Spfxrc0\20170210Spfxrc0WebPart.ts(41,3
): error TS1005: ',' expected.
WIN 7
node v4.6.0
npm 3.10.10
This is good feedback, thanks! We will investigate this problem and update this issue.
Confirmed this is still an issue in SPFx v1.7.0
Appears fixed... not throwing any errors in SPFx v1.9.1
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues