sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Typescript errors on @types\lodash\index.d.ts

Open rrkushner opened this issue 9 years ago • 8 comments

  • [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.

rrkushner avatar Feb 08 '17 20:02 rrkushner

Dupe #394 ?

andrewconnell avatar Feb 08 '17 21:02 andrewconnell

@andrewconnell It's a different set of errors, but the workaround in #394 fixes this one, too.

sparkitect avatar Feb 08 '17 22:02 sparkitect

I did this workaround from #394 and it worked: npm install @types/[email protected]

rrkushner avatar Feb 08 '17 22:02 rrkushner

Different error depending on which version of TypeScript you use, but same root cause & workaround.

andrewconnell avatar Feb 08 '17 22:02 andrewconnell

npm install @types/[email protected]

ghost avatar Feb 20 '17 11:02 ghost

@fksontini running the command fixed the issue.(npm install @types/[email protected])

anishetty avatar Feb 27 '17 18:02 anishetty

https://github.com/ionic-team/ionic-app-scripts/issues/700#issuecomment-276684485

lchioukh avatar Mar 05 '19 14:03 lchioukh

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

msft-github-bot avatar Jan 29 '20 18:01 msft-github-bot