-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[regression] export * from 'typescript/lib/typescript.d
throws after 2.19.0
#1801
Comments
export {}
throws after 2.19.0
export * from 'typescript/lib/typescript.d
throws after 2.19.0
If it's throwing from inside the resolver, that's a bug you'll need to file on the resolver, which is a different project. |
@ljharb Not at all. There's no resolver used in my reproduction. The related issue throws because the resolver resolves |
Hmm, I did misunderstand the stack trace - but the resolver is still the typescript resolver, which is a different package. What's the exact stack trace on v2.20.2, the latest version? |
@ljharb All versions after |
Right, but i need the file and line number on v2.20.2. |
Yes, I tested it with the latest version. |
Test seems to pass on latest master. |
@ljharb I try to build latest
It comes from |
@ljharb The minimal reproduction would be like following: // file1.ts
declare namespace ts {
const x: string;
export { x };
}
export = ts; // file2.ts
export * from './file1.ts' run I print {
"type": "ExportNamedDeclaration",
"source": null,
"specifiers": [
{
"type": "ExportSpecifier",
"local": {
"type": "Identifier",
"name": "x",
"range": [
53,
54
],
"loc": {
"start": {
"line": 3,
"column": 11
},
"end": {
"line": 3,
"column": 12
}
}
},
"exported": {
"type": "Identifier",
"name": "x",
"range": [
53,
54
],
"loc": {
"start": {
"line": 3,
"column": 11
},
"end": {
"line": 3,
"column": 12
}
}
},
"range": [
53,
54
],
"loc": {
"start": {
"line": 3,
"column": 11
},
"end": {
"line": 3,
"column": 12
}
}
}
],
"exportKind": "value",
"declaration": null,
"range": [
44,
57
],
"loc": {
"start": {
"line": 3,
"column": 2
},
"end": {
"line": 3,
"column": 15
}
}
} |
Thank you, got a properly failing test case with a proper fix :-) |
related: import-js/eslint-import-resolver-typescript#47
Minimal reproduction:
run:
eslint test.ts
error log:
After downgrading to
~2.18.2
, there will be no error any more.The text was updated successfully, but these errors were encountered: