sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

gulp server errors

Open dcu-sharepoint opened this issue 9 years ago • 1 comments

Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you.

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Enhancement / Suggestion
  • [ ] Additional article idea

Expected or Desired Behavior

expect to get a working project scalfolding.

I'm using the lastest version of everything including node, yo, gulp and @microsoft/sharepoint

Observed Behavior

getting over 100 errors when running gulp serve

Build target: DEBUG [18:17:00] Using gulpfile W:[2017-01-09]SPFX\js-thirdpartycss-CDN\gulpfile.js [18:17:00] Starting gulp [18:17:00] Starting 'serve'... [18:17:00] Starting subtask 'pre-copy'... [18:17:00] Finished subtask 'pre-copy' after 9.25 ms [18:17:00] Starting subtask 'copyStaticAssets'... [18:17:00] Starting subtask 'sass'... [18:17:01] Finished subtask 'sass' after 710 ms [18:17:01] Starting subtask 'tslint'... [18:17:01] Starting subtask 'typescript'... [18:17:01] [typescript] Using custom version: 2.0.10 [18:17:01] Finished subtask 'copyStaticAssets' after 778 ms [18:17:04] Error - typescript - node_modules@types\react\index.d.ts(2440,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'a' must be of type 'HTMLProps', but here has type 'HTMLProps'. [18:17:04] Error - typescript - node_modules@types\react\index.d.ts(2441,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'abbr' must be of type 'HTMLProps', but here has type 'HTMLProps'. [18:17:04] Error - typescript - node_modules@types\react\index.d.ts(2552,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'wbr' must be of type 'HTMLProps', but here has type 'HTMLProps'. [18:17:04] Error - typescript - node_modules@types\react\index.d.ts(2555,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'svg' must be of type 'SVGProps', but here has type 'SVGProps'. [18:17:04] Error - typescript - node_modules@types\react\index.d.ts(2557,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'circle' must be of type 'SVGProps', but here has type 'SVGProps'. [18:17:04] Error - typescript - node_modules@types\react\index.d.ts(2604,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'text' must be of type 'SVGProps', but here has type 'SVGProps'. [18:17:04] Error - typescript - node_modules@types\react\index.d.ts(2606,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'tspan' must be of type 'SVGProps', but here has type 'SVGProps'. [18:17:04] Error - typescript - typings\react\react.d.ts(2132,15): error TS2320: Interface 'Element' cannot simultaneously extend types 'ReactElement' and 'ReactElement'. [18:17:04] Finished subtask 'tslint' after 3.46 s [18:17:04] Error - 'typescript' sub task errored after 3.46 s "TypeScript error(s) occurred." [18:17:04] 'serve' errored after 4.22 s [18:17:04] [18:17:05] ==================[ Finished ]================== [18:17:06] Project js-thirdpartycss-cdn version: 0.0.1 [18:17:06] Build tools version: 0.11.1 [18:17:06] Node version: v6.9.2 [18:17:06] Total duration: 9.49 s [18:17:06] Task errors: 134

Steps to Reproduce

  1. yo @microsoft/sharepoint build a helloworld project
  2. gulp trust-dev-cert
  3. gulp serve

the following comparison image show a good yo @microsoft/sharepoint gulp serve session and on the right is a faulty yo @microsoft/sharepoint gulp serve with one day apart. error-comparison

what am i doing wrong?

Submission Guidelines

UPGRADED TO THE RC0 Bits and the problem went away....

Thanks for your contribution! Sharing is caring.

dcu-sharepoint avatar Jan 11 '17 23:01 dcu-sharepoint

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

msft-github-bot avatar Jan 30 '20 00:01 msft-github-bot