firestore-migrator
firestore-migrator copied to clipboard
Error occurrred while npm run build
$ 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
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"
},
.
.
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
@tanin5462 did work for me with v3.2.2
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
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!
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.
https://stackoverflow.com/questions/57331779/typescript-duplicate-identifier-iteratorresult
This also required for me
Issue resolved by pull request referenced above