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

Exported variable 'X' has or is using name 'Y' from external module "Z" but cannot be named. #20842

Closed
alan-agius4 opened this issue Dec 21, 2017 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@alan-agius4
Copy link
Contributor

alan-agius4 commented Dec 21, 2017

TypeScript Version: 2.7.0-dev.20171221

Code

// foo.ts
import { WatchOptions } from "cpx";
export let x: WatchOptions;

// bar.ts
import { x } from "./foo";
export const x2 = x;

Just for the sake of the above you can install only @types/cpx

Expected behavior:
No error and the external module interface is named.

Actual behavior:

Exported variable 'x2' has or is using name 'WatchOptions' from external module "C:/git/xxxx/node_modules/@types/cpx/index" but cannot be named.

Related to #20657 but it seems this only solved local non node_modules imports

@ajafff
Copy link
Contributor

ajafff commented Dec 21, 2017

Duplicate of #9944

@mhegazy mhegazy added the Duplicate An existing issue was already created label Jan 11, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants