Feb 16 2017 05:26 AM
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?
Feb 16 2017 06:46 AM
Feb 17 2017 03:48 PM
If you delete webpack-env it should work.
This is realted to a previous question :https://techcommunity.microsoft.com/t5/SharePoint-Developer/Error-in-webpack-env-index-d-tx-after-up...
Feb 20 2017 05:47 AM
well it did compile with warnings but when the webpart shows up in the workbench i am getting js errors failed to load resource www.contoso.com//_api/VideoService.Discover. Is that even a reall api and iif not where do i go to configure it to point to a real api
Feb 20 2017 07:01 AM
the webparts need to run on a sharepoint page. they do not work on the local workbench