Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
rrkushner opened this issue Feb 8, 2017 · 8 comments
Closed
1 task done

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

rrkushner opened this issue Feb 8, 2017 · 8 comments

Comments

@rrkushner
Copy link

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

@andrewconnell
Copy link
Collaborator

Dupe #394 ?

@sparkitect
Copy link
Contributor

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

@rrkushner
Copy link
Author

I did this workaround from #394 and it worked:
npm install @types/lodash@4.14.50

@andrewconnell
Copy link
Collaborator

andrewconnell commented Feb 8, 2017 via email

@ghost
Copy link

ghost commented Feb 20, 2017

npm install @types/lodash@4.14.50

@anishetty
Copy link

@fksontini running the command fixed the issue.(npm install @types/lodash@4.14.50)

@ChioukhLyes
Copy link

@msft-github-bot
Copy link
Collaborator

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

@SharePoint SharePoint locked as resolved and limited conversation to collaborators Jan 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants