-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Regression in 2.24.0: TypeError: Cannot read property 'name' of undefined #1746
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
Comments
I'm unable to repro this against master. The line in the stack trace cannot cause this error, because it can only be hit if typescript-eslint/packages/typescript-estree/src/convert.ts Lines 1605 to 1607 in d121838
Could you please create a repro repo to help us investigate this? |
Thanks for the response. I will work on trimming down my repo to a minimal example and get back to you. |
It looks like |
interesting. I hadn't thought about that outcome. |
* build(dep): bump `@nestjs` to `7.0.3` * build(dep): bump `@nrwl` to `9.1.2` * build(dep): bump div dep * build(dep): bump @angular cdk & material * build(dep): bump `cypress`, `zone.js` & `jest-preset-angular` * build(dep): revert to `eslint/parser` `2.23.0`: - typescript-eslint/typescript-eslint#1746 * refactor(frontend): add comment about not dispatching action with `File`
Could you please help, how to fix it without waiting new version? Upgrade to typescript 3.8.0 doesnt work |
My workaround was to downgrade to |
In my case I'm using |
Just wondering, any ETA for a new version with the fix? |
If you're stuck on ts 3.7, then downgrade to 2.23.0. I have a fix ready, but due to a glitch in azure, our per commit canary release is broken. So this will go out with our regular release schedule, listed on our readme. |
@JamesHenry managed to fix the canary pipeline 🎉 The fix for this is now released to the |
Any advice on how to downgrade when this is included with create-react-app? This is breaking all builds at the moment. |
I don't know exactly how create-react-app does its dependency management, but you might just be able to install your own version of our packages? Having a look at their eslint config, it has a peer dep on our packages, so you should just be able to bump the version yourself? Worst case, you can use a mechanism like yarn resolutions to force a certain version |
Thanks. Confirming forcing version 2.23.0 manually as well as through Yarn resolutions for the following now works. "resolutions": { |
Confirmed that downgrading is now working, thanks!
|
I've upgraded to TS 3.8 (even 3.9 nightly), no avail. Tried the resolutions, still no avail. I'm still getting the same error. |
Same here, this happens when trying to import a dependency built with typescript in one of my components:
my env:
I also tried @mend3 resolutions 🤷♂ I'd appreciate some signs of light here, an important project is stuck due to this. |
@netpoe - this isn't an error related to our project. Loaders are a webpack concept, and we do not do anything with webpack. Nothing I can do to help here, sorry. @canpoyrazoglu - hard to help without some more information. But this is confirmed working via pinning your dependencies. You'll have to check your setup For anyone coming here - the fix is released on our I don't know what your individual setups are, so I can't provide more concrete advice than that. If you don't want to use our Make sure you restart vscode (or whatever IDE you are using) after you change your dependencies, as the IDE extensions will not automatically switch to the new version. Otherwise it will be released to the latest tag on Monday morning, as per our standard release schedule.https://github.com/typescript-eslint/typescript-eslint#package-versions Locking to prevent further commenting. |
What code were you trying to parse?
This seems to be an issue with barrel files, and was likely introduced by 133f622#diff-68b2b0b0d2d0ff1846b1114472008332R1606
What did you expect to happen?
No error.
What actually happened?
Running with
--debug
gives the following (clipped for brevity):Versions
@typescript-eslint/typescript-estree
2.24.0
TypeScript
3.7.5
node
13.9.0
npm
yarn 1.22.1
The text was updated successfully, but these errors were encountered: