Typescript errors on @types\lodash\index.d.ts
- [x] Bug
Expected or Desired Behavior
Run my new Helloworld-webpart
Observed Behavior
8 errors on node_modules@types\lodash\index.d.ts; 4-TS1005 & 4-TS1128 Full error messaages below
Steps to Reproduce
spfx/set-up-your-development-environment spfx/web-parts/get-started/build-a-hello-world-web-part I got the errors when I ran "gulp serve" There were no errors when I ran "yo @microsoft/sharepoint"
I am running on a win 10 azure vm.
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.
Dupe #394 ?
@andrewconnell It's a different set of errors, but the workaround in #394 fixes this one, too.
I did this workaround from #394 and it worked: npm install @types/[email protected]
Different error depending on which version of TypeScript you use, but same root cause & workaround.
npm install @types/[email protected]
@fksontini running the command fixed the issue.(npm install @types/[email protected])
https://github.com/ionic-team/ionic-app-scripts/issues/700#issuecomment-276684485
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues