Skip to content

How to fix Typescript errors for external packages #3121

@simkessy

Description

@simkessy

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

Expected or Desired Behavior

I added "devextreme & devextreme-react" to my webpart. When I gulp serve I get these errors:

node_modules\devextreme\bundles\dx.all.d.ts(250,43): error TS1005: ',' expected.

I understand that SPFx is running on Typescript 2.X which might cause issues with packages which are build for TS 3.X

Are there any options or is the answer simple "You can't use this package at the moment"

From what I can see in devextreme, the devDependencies is "typescript": "^2.0.3", so I'm not entirely sure why it's not working in SPFx

Is there anyway to gulp serve and ignore TS errors?

Observed Behavior

image

image

Metadata

Metadata

Assignees

Labels

area:docsCategory: SharePoint developer/development documentation relatedarea:spfxCategory: SharePoint Framework (not extensions related)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions