-
Notifications
You must be signed in to change notification settings - Fork 436
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
Unable to build Clasp. Duplicated Lines of Code in file auth.ts #297
Comments
It's an error. Can you submit a PR to fix it? |
I'm getting error 403 when I try to push my branch. Do you know how to solve that? |
Can you press the fork button on the top right, clone that repo, then push to that repo? |
I just submitted the PR. |
Fixed with #298. |
I'm going to delete the comments in the other thread since they are off topic. Here they are:
|
(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:
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/[email protected] build:
tsc --project tsconfig.json && npm i -g --l oglevel=error
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @google/[email protected] 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
Specifications
node -v
): v8.11.4clasp -v
): 1.5.3The text was updated successfully, but these errors were encountered: