Unable to build Clasp. Duplicated Lines of Code in file auth.ts
See original GitHub issue(Please search existing issues before creating a new one.)
Expected Behavior
Have clasp build after run the command npm run build
Actual Behavior
error during the building process:
tsc --project tsconfig.json && npm i -g --loglevel=error
src/auth.ts:1:13 - error TS2300: Duplicate identifier ‘fs’.
1 import * as fs from ‘fs’; ~~
src/auth.ts:2:13 - error TS2300: Duplicate identifier ‘fs’.
2 import * as fs from ‘fs’; ~~
src/auth.ts:11:10 - error TS2300: Duplicate identifier ‘Discovery’.
11 import { Discovery } from ‘googleapis/build/src/apis/discovery/v1’; ~~~~~~~~~
src/auth.ts:12:10 - error TS2300: Duplicate identifier ‘Discovery’.
12 import { Discovery } from ‘googleapis/build/src/apis/discovery/v1’; ~~~~~~~~~
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @google/clasp@1.5.3 build: tsc --project tsconfig.json && npm i -g --l oglevel=error
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @google/clasp@1.5.3 build script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\GL000017\AppData\Roaming\npm-cache_logs\2018-08-23T18_48_ 39_488Z-debug.log
Steps to Reproduce the Problem
- Clone the project
- Run the steps under “Develop” section
- See the error
Specifications
- Node version (
node -v
): v8.11.4 - Version (
clasp -v
): 1.5.3 - OS (Mac/Linux/Windows): Windows 7
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
I just submitted the PR. Thanks!
I’m going to delete the comments in the other thread since they are off topic. Here they are: