Forum Discussion
SPFx with Visual Studio 2015
- Sep 16, 2016
It seems that using the latest released drop of SPFx the problem disappears. Now I can build and run my code with VS 2015 following the instructions here: http://dev.office.com/sharepoint/docs/spfx/web-parts/basics/use-visual-studio.
Latest drop that worked for me: https://github.com/SharePoint/sp-dev-docs/wiki/Release-Notes-Drop-3
Thanks SPFx team!
It seems that using the latest released drop of SPFx the problem disappears. Now I can build and run my code with VS 2015 following the instructions here: http://dev.office.com/sharepoint/docs/spfx/web-parts/basics/use-visual-studio.
Latest drop that worked for me: https://github.com/SharePoint/sp-dev-docs/wiki/Release-Notes-Drop-3
Thanks SPFx team!
- Frank ChenOct 10, 2016Brass Contributor
it seems like the latest Drop 4 and MDL2 was broken under VS2015. I got the following error message when run gulp serve:
[23:01:44] Error - typescript - src\webparts\helloWorld\HelloWorldWebPart.d.ts(6,14): error TS1005: '=' expected.
[23:01:44] Error - typescript - src\webparts\helloWorld\HelloWorldWebPart.d.ts(6,34): error TS1005: ';' expected.
[23:01:45] Error - 'typescript' sub task errored after 6.47 s "TypeScript error(s) occurred."
[23:01:45] 'serve' errored after 9.71 s
[23:01:45] Error - typescript - src\webparts\helloWorld\HelloWorldWebPart.d.ts(6,14): error TS1005: '=' expected.Error - typescript - src\webparts\helloWorld\HelloWorldWebPart.d.ts(6,34): error TS1005: ';' expected.Error - 'typescript' sub task errored after 6.47
The line 6 on HelloWorldWebPart.d.ts is
readonly propertyPaneSettings: IPropertyPaneSettings;
Other than that, the line 8 in HelloWorldWebPart.ts alway showed the error message for import scss.
import styles from './HelloWorld.module.scss';
Anyone know the workaround?