Open rewbs opened 1 year ago
Turns out adding the following is enough to mute the error for react-scripts, and @xzdarcy/react-timeline-editor@0.1.9
only flags a warning:
"overrides": {
"react-scripts": {
"typescript": "^5"
}
So we can now run without --force with the only downside being a warning. The importance of this issue is therefore much lower.
Just to add a tip - you can also use the $ approach like this to make it match the version of the package from your main deps 👍🏼
"overrides": {
"react-scripts": {
"typescript": "$typescript"
}
}
npm install
currently fails due to incompatibilities in transitive dependencies. This is harmless at the moment and can be worked around withnpm install --force
. However, that command is somewhat dangerous so it would be better to not rely on it.The problems are that:
react-scripts@5.0.1
does note declare compatibility with versions oftypescript
above4
(I'm currently on5.0.4
). Tracked here: https://github.com/facebook/create-react-app/issues/13080 . Unfortunately, it seemsreact-scripts
might be abandoned so the solution might be to move to vite.@xzdarcy/react-timeline-editor@0.1.9
usesreact-virtualized@9.22.3
, which does not declare compatibility with versions ofreact
andreact-dom
above16.14.0
(I'm currently on18.2.0
). Unfortunately it seemsreact-virtualized
is deprecated and unlikely to get updates, so we'd needreact-timeline-editor
to switch toreact-window
. I have raised this here: https://github.com/xzdarcy/react-timeline-editor/issues/33The error output is:
Once again, the workaround is simply
npm install --force
.