Closed (fixed)
Project:
Experience Builder
Version:
0.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Nov 2024 at 21:50 UTC
Updated:
14 May 2025 at 11:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
shyam_bhattComment #4
shyam_bhattComment #5
balintbrewsWhile the warning is harmless in our case, I agree that it may be confusing and distracting.
Let's not downgrade the TypeScript version. Instead, can we please see if we can update to a newer version of
typescript-eslint? We could also setwarnOnUnsupportedTypeScriptVersiontofalsein our ESLint config, but let's try to avoid that.Comment #6
shyam_bhatt@balintbrews The issue is already listed on the StackOverflow.
Comment #7
balintbrewsThat question on StackOverflow is quite old, and it also shows that the Next.js team was not super concerned about the warning either. 😊
typescript-eslinthas support for the latest stable version of TypeScript, 5.6, since its v8.10.0. If we're changing version numbers to get rid of this warning, I would rather get us upgraded to newer versions than going backwards.@shyam_bhatt, are you up for giving this a try?
Comment #8
balintbrewsComment #9
shyam_bhattyes @balintbrews, I have tried as per your latest comment, but I have not found a solution. We need to check after upgrading the TypeScript to 5.6 still facing the issue for the `typescript-eslint`.
Needs work.
Comment #10
wim leersNote that TypeScript 5.8 shipped 4 days ago: https://devblogs.microsoft.com/typescript/announcing-typescript-5-8/ — but not all of our other packages might like that.
Let's move step-by-step. Moving from our current TypeScript 5.4.5 to 5.6 (as @balintbrews alluded to in #7) seems like a worthwhile intermediary step.
Comment #11
meghasharma commentedWorking on it.
Comment #12
meghasharma commentedI have upgraded TypeScript to version 5.6.3 as per the discussion.
Verified with: npx tsc --version and npm list typescript
Ran npm install to ensure dependencies are correctly installed
Comment #13
meghasharma commentedAfter running npm run lint:eslint, I still see the same warning that was present earlier:
Should we now check if we can update to a newer version of @typescript-eslint to resolve this?
Comment #14
wim leersYes, please! 🙏
Comment #15
balintbrewsJust noting here that at one point we should also migrate to ESLint 9 and its new configuration format, but we can leave that to another issue.
Comment #16
wim leers… unless it's easier to do :D
Comment #17
meghasharma commentedI have updated @typescript-eslint/eslint-plugin and @typescript-eslint/parser to 8.26.0 as per the issue requirement.
Installed versions:
@typescript-eslint/eslint-plugin: 8.26.0
@typescript-eslint/parser: 8.26.0
After updating, I ran npm run lint:eslint and encountered the following error:
Comment #19
tinarey commentedI could replicate the issue. The problem is dependencies:
Running `npm ls @typescript-eslint/eslint-plugin` shows these:
typescript-eslint can be updated (done in MR), but eslint-config-react-app doesn't have an update (yet? might be abandonned). I've added an override which seems to work (peerDependencies didn't work), but that may need a follow up task to remove when we can.
Otherwise we may be able to use eslint-plugin-react instead.
I now get linting errors as expected:
Comment #20
wim leersComment #21
wim leersSorry, @balintbrews didn't get around to reviewing this in time — this now needs a reroll 🙈
Comment #22
tinarey commentedMerged 0.x into this. Looks like eslint-config-react-app is gone and we don't need the override anymore.
Comment #23
tinarey commentedComment #24
wim leersWonderful, thanks, @tinarey!
Comment #27
jessebaker commentedThanks all! Merging