Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

运行tsc时出现问题 #78

Open
2403772980ygy opened this issue Jan 1, 2020 · 0 comments
Open

运行tsc时出现问题 #78

2403772980ygy opened this issue Jan 1, 2020 · 0 comments

Comments

@2403772980ygy
Copy link

当运行tsc时, 输出一下错误信息:

error TS2300: Duplicate identifier 'IteratorResult'.

41 type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
        ~~~~~~~~~~~~~~

  node_modules/@types/node/index.d.ts:200:11
    200 interface IteratorResult<T> { }
                  ~~~~~~~~~~~~~~
    'IteratorResult' was also declared here.

node_modules/@types/node/index.d.ts:200:11 - error TS2300: Duplicate identifier 'IteratorResult'.

200 interface IteratorResult<T> { }
              ~~~~~~~~~~~~~~

  ../../AppData/Roaming/npm/node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6
    41 type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
            ~~~~~~~~~~~~~~
    'IteratorResult' was also declared here.

请问如何解决?

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

1 participant