Typescript error with SPFX
See original GitHub issueHello 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:
- Created 5 years ago
- Comments:6
Top GitHub Comments
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 yourgulp serve
task.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 !