-
-
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
Support export =
TypeScript syntax
#1841
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I get "TypeError: Cannot read property 'name' of undefined" when importing an index.d.ts with
export = AnalyticsNode.Analytics;
:I have "eslint-plugin-import": "^2.22.0" (which fixed #1818) I still get:
It happens when importing a namespace from this file:
I added
console.log("exp", n.expression, n.expression.name, n.expression.id);
before
const exportedName = n.type === 'TSNamespaceExportDeclaration'
in ExportMap, and I got:
It crashes because the expression has no name nor id fields.
I tried hard to generate a small test case, but I could not reproduce the issue then.
My workaround to avoid the crash was removing this
The text was updated successfully, but these errors were encountered: