Skip to content

Kept on getting error message for @types/sharepoint #668

@jonathanhotono

Description

@jonathanhotono

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

Just changed my PC, installed the latest generator-sharepoint, performed a git clone on my repository and on some projects this error messages kept on coming up when I'm trying to build(gulp serve) the project and I'm not sure on what's causing this issue. The project is on GA release. I tried to upgrade it to June release and the error still persists. Typescript version on tslint is 2.1.6. Any idea on what's going on?

Update:
I have managed to fix it by checking the version of @types/sharepoint on my old computer (2013.1.6) and the current version is (2013.1.9), I rolled back the version to 2013.1.6 and it works fine on my GA release project. I'm not exactly sure whether this way of changing to old version is actually right, but it works.

[09:00:22] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3604,17): error TS1005: ',' expected.

[09:00:22] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3823,17): error TS1005: ',' expected.

[09:00:22] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3825,19): error TS1005: ',' expected.

[09:00:22] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3827,21): error TS1005: ',' expected.
[09:00:22] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3829,18): error TS1005: ',' expected.
[09:00:22] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3896,21): error TS1005: ',' expected.
[09:00:22] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3944,31): error TS1005: ',' expected.
[09:00:24] Error - typescript - node_modules\@types\sharepoint\index.d.ts(70,42): error TS2314: Generic type 'ListItem<T, any>' requires 2 type
argument(s).

[09:00:24] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3098,31): error TS2314: Generic type 'ListItem<T, any>' requires 2 typ
e argument(s).
[09:00:24] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3362,33): error TS2314: Generic type 'ListItem<T, any>' requires 2 typ
e argument(s).
[09:00:24] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3468,33): error TS2314: Generic type 'ListItem<T, any>' requires 2 typ
e argument(s).
[09:00:24] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3604,19): error TS2368: Type parameter name cannot be 'any'
[09:00:24] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3606,33): error TS2314: Generic type 'ListItem<T, any>' requires 2 typ
e argument(s).
[09:00:24] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3816,39): error TS2314: Generic type 'ListItemCollection<T, any>' requ
ires 2 type argument(s).
[09:00:24] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3818,61): error TS2314: Generic type 'ListItem<T, any>' requires 2 typ
e argument(s).
[09:00:24] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3821,59): error TS2314: Generic type 'List<T, any>' requires 2 type ar
gument(s).
[09:00:24] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3823,19): error TS2368: Type parameter name cannot be 'any'
[09:00:24] Error - typescript - node_modules\@types\sharepoint\index.d.ts(3823,40): error TS2314: Generic type 'List<T, any>' requires 2 type ar
gument(s).
```


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