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

Error occurrred while npm run build #32

Open
ableme opened this issue Jun 1, 2019 · 8 comments
Open

Error occurrred while npm run build #32

ableme opened this issue Jun 1, 2019 · 8 comments

Comments

@ableme
Copy link

ableme commented Jun 1, 2019

$ npm run build

[email protected] build D:\cjexpress\firestore-migrator
tsc

node_modules/google-auth-library/build/src/auth/oauth2client.d.ts(298,55): error TS1039: Initializers are not allowed in ambient contexts.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: tsc
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Environment
OS : windows 10
Node: node 12.3.1

@predorock
Copy link

I solved the issue updating typescript to v3.2.2

.
.
.
"devDependencies": {
    "@types/csvtojson": "^1.1.5",
    "@types/fs-extra": "^5.0.1",
    "@types/lodash": "^4.14.106",
    "@types/node": "^10.5.7",
    "typescript": "^3.2.2"
  },
.
.

@tanin5462
Copy link

tanin5462 commented Jun 18, 2019

I solved the issue updating typescript to v3.2.2

.
.
.
"devDependencies": {
    "@types/csvtojson": "^1.1.5",
    "@types/fs-extra": "^5.0.1",
    "@types/lodash": "^4.14.106",
    "@types/node": "^10.5.7",
    "typescript": "^3.2.2"
  },
.
.

sorry it's doesn't work.
I try both with 3.2.2 and the lastest version 3.5.2
And I try with 2 version of Node10.16.0 and the lastest 12.4.0
but I still can not use npm run build

@pablomaurer
Copy link

@tanin5462 did work for me with v3.2.2

@JStrawn
Copy link

JStrawn commented Jul 3, 2019

I solved the issue updating typescript to v3.2.2

.
.
.
"devDependencies": {
    "@types/csvtojson": "^1.1.5",
    "@types/fs-extra": "^5.0.1",
    "@types/lodash": "^4.14.106",
    "@types/node": "^10.5.7",
    "typescript": "^3.2.2"
  },
.
.

sorry it's doesn't work.
I try both with 3.2.2 and the lastest version 3.5.2
And I try with 2 version of Node10.16.0 and the lastest 12.4.0
but I still can not use npm run build

Change it, do another npm install then try again

@cdcv
Copy link

cdcv commented Aug 7, 2019

After the change to Typescript 3.2.2 by changing the package.json withe the contents in the previous post, followed by running npm install, the problem was solved and it npm run build worked for me. Thanks!

@julianandrade
Copy link

After the change to Typescript 3.2.2 by changing the package.json withe the contents in the previous post, followed by running npm install, the problem was solved and it npm run build worked for me. Thanks!

Remove "node_modules" also.

@pjc0247
Copy link

pjc0247 commented Dec 3, 2019

https://stackoverflow.com/questions/57331779/typescript-duplicate-identifier-iteratorresult

This also required for me

@19007361
Copy link

Issue resolved by pull request referenced above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants