Skip to content

Gulp server Error - 'typescript' sub task errored #426

@kyckness

Description

@kyckness

Category

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

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

Expected or Desired Behavior

expect to get a working project scalfolding.

Observed Behavior

getting over 9 errors when running gulp serve

Build target: DEBUG
[12:55:34] Using gulpfile C:\Proyectos\WebParts\noticias-webpart\CarouselWebPart\gulpfile.js
[12:55:34] Starting gulp
[12:55:34] Starting 'serve'...
[12:55:34] Starting subtask 'pre-copy'...
[12:55:34] Finished subtask 'pre-copy' after 9.34 ms
[12:55:34] Starting subtask 'copyStaticAssets'...
[12:55:34] Starting subtask 'sass'...
[12:55:35] Finished subtask 'sass' after 593 ms
[12:55:35] Starting subtask 'tslint'...
[12:55:35] Starting subtask 'typescript'...
[12:55:35] [typescript] Using custom version: 2.0.10
[12:55:35] Finished subtask 'copyStaticAssets' after 680 ms
[12:55:38] Error - typescript - node_modules@types\lodash\index.d.ts(11444,21): error TS1005: ']' expected.
[12:55:38] Error - typescript - node_modules@types\lodash\index.d.ts(11444,22): error TS1005: ';' expected.
[12:55:38] Error - typescript - node_modules@types\lodash\index.d.ts(11444,23): error TS1128: Declaration or statement expected.
[12:55:38] Error - typescript - node_modules@types\lodash\index.d.ts(11444,33): error TS1005: ']' expected.
[12:55:38] Error - typescript - node_modules@types\lodash\index.d.ts(11444,34): error TS1005: ')' expected.
[12:55:38] Error - typescript - node_modules@types\lodash\index.d.ts(11444,35): error TS1128: Declaration or statement expected.
[12:55:38] Error - typescript - node_modules@types\lodash\index.d.ts(11444,37): error TS1128: Declaration or statement expected.
[12:55:38] Error - typescript - node_modules@types\lodash\index.d.ts(19441,1): error TS1128: Declaration or statement expected.
[12:55:38] Finished subtask 'tslint' after 2.92 s
[12:55:38] Error - 'typescript' sub task errored after 2.99 s
"TypeScript error(s) occurred."
[12:55:38] 'serve' errored after 3.63 s
[12:55:38]
[12:55:39] ==================[ Finished ]==================
Error - typescript - node_modules@types\lodash\index.d.ts(11444,21): error TS1005: ']' expected.
Error - typescript - node_modules@types\lodash\index.d.ts(11444,22): error TS1005: ';' expected.
Error - typescript - node_modules@types\lodash\index.d.ts(11444,23): error TS1128: Declaration or statement expected.
Error - typescript - node_modules@types\lodash\index.d.ts(11444,33): error TS1005: ']' expected.
Error - typescript - node_modules@types\lodash\index.d.ts(11444,34): error TS1005: ')' expected.
Error - typescript - node_modules@types\lodash\index.d.ts(11444,35): error TS1128: Declaration or statement expected.
Error - typescript - node_modules@types\lodash\index.d.ts(11444,37): error TS1128: Declaration or statement expected.
Error - typescript - node_modules@types\lodash\index.d.ts(19441,1): error TS1128: Declaration or statement expected.
Error - 'typescript' sub task errored after 2.99 s
"TypeScript error(s) occurred."
[12:55:39] Project carousel-web-part version: 0.0.1
[12:55:39] Build tools version: 1.1.0
[12:55:39] Node version: v6.9.5
[12:55:39] Total duration: 6.57 s
[12:55:39] Task errors: 9

Steps to Reproduce

yo @microsoft/sharepoint
build a helloworld project
gulp trust-dev-cert
gulp serve

What can i do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions