Forum Discussion

Debayo Graham's avatar
Debayo Graham
Brass Contributor
Feb 16, 2017

SharePoint Framework client-side web part samples

has anyone tried and got the video library samples here to work https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-videolibrary

 

I am getting these errors

Error - typescript - node_modules\@types\webpack-env\index.d.ts(186,13): error TS2403: Subsequent variable de
must have the same type. Variable 'require' must be of type '{ (path: string): any; (paths: string[], callba
ules: any[]) => void): void; resolve: (...', but here has type 'NodeRequire'.
Error - typescript - node_modules\@types\webpack-env\index.d.ts(233,13): error TS2451: Cannot redeclare block
iable 'DEBUG'.
Error - typescript - typings\@ms\odsp.d.ts(7,15): error TS2451: Cannot redeclare block-scoped variable 'DEBUG
Error - 'typescript' sub task errored after 6.15 s
"TypeScript error(s) occurred."

 

Research shows it has something to do with wepack-env.d.ts and node.d.ts. I am not familiar with typescript, any suggestions?

4 Replies

Resources