question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typescript error with SPFX

See original GitHub issue

Hello everyone ! I recently tried to use Immutability helper in a sharepoint project, but no matter what I do I keep getting the same error :

Error - typescript - node_modules\immutability-helper\index.d.ts(15,75): error TS1005: ')' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,96): error TS1005: ')' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,99): error TS1109: Expression expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,121): error TS1005: ';' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,123): error TS1109: Expression expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,125): error TS1128: Declaration or statement expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,143): error TS1005: '(' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,147): error TS1005: ',' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,166): error TS1005: ')' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,175): error TS1005: ',' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,178): error TS1109: Expression expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,198): error TS1005: ',' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,207): error TS1005: ',' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,209): error TS1109: Expression expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,227): error TS1005: '(' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,231): error TS1005: ',' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,250): error TS1005: ')' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,253): error TS1109: Expression expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,273): error TS1005: ',' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,275): error TS1109: Expression expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,290): error TS1005: '(' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,294): error TS1005: ',' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(15,328): error TS1005: '(' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(16,11): error TS1005: ',' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(18,23): error TS1005: ',' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(19,23): error TS1005: ')' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(19,52): error TS1005: ',' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(19,55): error TS1109: Expression expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(19,67): error TS1005: ':' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(25,34): error TS1005: ',' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(25,35): error TS1131: Property or signature expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(25,37): error TS1131: Property or signature expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(25,56): error TS1110: Type expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(25,63): error TS1005: ';' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(25,64): error TS1109: Expression expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(26,0): error TS1128: Declaration or statement expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(26,2): error TS1109: Expression expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(27,10): error TS1005: ']' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(27,18): error TS1005: ',' expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(27,19): error TS1136: Property assignment expected. [17:26:48] Error - typescript - node_modules\immutability-helper\index.d.ts(27,31): error TS1005: '(' expected. [17:26:49] Error - 'typescript' sub task errored after 10 s

It looks like a verisonning problem, but even after updating everything I keep getting the same error. Does the module just not work in an SPFX environement ?

Thanks a lot for anyone who will take the time to read this.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
jednanocommented, Jan 16, 2019

This project uses ^3.2.2. I suggest updating anything that’s using a lesser version before pointing the finger at this project, so that would include your gulp serve task.

0reactions
HadrienAllemoncommented, Jan 18, 2019

Well Upgrading versions ended up breaking up other things, but I found a workaround by using react-addons-update instead of immutability helper. Thanks a lot for the help !

Read more comments on GitHub >

github_iconTop Results From Across the Web

SP2019 solution typescript errors #273 - pnp/generator-spfx
I created a SP2019 solution. After this i immediatly started gulp serve and then i got the following typescript errors: [13:11:57] Error - ......
Read more >
Typescript errors in SharePoint Framework webparts
Can anyone help me on how to fix the issue. as per the descriptions, the error are in the Typescript. spfx · spfx-webparts...
Read more >
Typescript errors occur when I try to integrate React ...
Typescript errors occur when I try to integrate React Framework based Target Audience functionality into SPFx solution having multiple SPFx ...
Read more >
Gojs Error in Typescript SPFX - Northwoods Software
Iam using SPFX webpart development. Iam getting the below error while importing gojs as below import * as go from 'gojs/release/go-module';.
Read more >
Typescript spfx error: Property 'news' does not exist on type ...
I have this working in a play ground, but spfx uses typescript and not sure how to combat the type error below. RssFeed.ts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found