-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug]: typescript patch fails to apply with [email protected] #3722
Comments
This issue occurs in [email protected] that causes I downgraded typescript to 4.4.4 to workaround this issue. |
It works with the node-modules linker. It must be the new way libs are handled in 4.5 |
do they keep changing things every update? I remember that it got broke down in last major update too and needed patch. |
Yes, unfortunately each release seems to touch the resolution in a way that makes the patch incompatible lately ... |
The updated patch was released in yarn set version canary && yarn install |
This worked though (thanks @Paosder):
In case someone needs help downgrading: yarn remove typescript
rm -rf .yarn/sdks/typescript
yarn add [email protected]
yarn dlx @yarnpkg/sdks base |
@cBiscuitSurprise Did you run an install after changing the Yarn version? |
I did not... But I did just duplicate my working folder and upgraded back to typescript 4.5.2-sdk and it's all working fine... so presumably running |
Running There is a bunch of Is there any practical workaround? The warnings are not blocking, they just distract from other (possibly more useful) output. |
Those warnings is showing up after the upgrade because of #3667, I plan on silencing them as they provide no value but for now you can use NODE_OPTIONS="--no-warnings" yarn lint |
Our team was having a very confounding issue that we could not pinpoint the origin of between a consuming app and shared library. Turns out somewhere we had upgraded typescript, but this error did not come up for a few small version upgrades of our library because we had not updated the Our issue was that removing the If we incrementally and manually updated the package.json versions of our library and Thanks to this fellow @Paosder for finally helping me create a more stable library. This seems definitely like a bug... or it's not clear that yarn has non-deterministic behavior simply for removing and recreating the Honestly, I'm having a hard time understanding what is going on, but downgrading to 4.4.4 definitely worked to allow me to remove the yarn.lock and re-build cleanly with our latest. I would like a better understanding of what went wrong here so we can have a clean upgrade path moving forward. Thanks! |
Thanks. TS issue solved by this. but, in next.js |
@bestseob93 if you experience issues with Next.js canary, try downgrading to 12.0.4 and see vercel/next.js#31552. This is probably to do with Webpack, so not related to TS. |
@kachkaev Thank you. but i'm using v10.2.3. (webpack v4) Even if I don't upgrade TypeScript version, I can't run it with canary alone. nutshell..
with yarn v3.1.0, it works fine. |
This did not work for me (yarn 3.1.0, typescript: 4.5.2) |
That indicates you didn't run the provided commands |
Stable 3.1.1 has been released yarn set version latest && yarn install |
For those ones cannot upgrade yarn version via |
Also requires yarn 3.2.0-rc.5 due to yarnpkg/berry#3722
For those
and the reference is here |
For reference: yarn versions >=3.2.0 updates fsevents in macos which causes Jest to hang and breaks terser-webpack-plugin v4 (the version that supports webpack v4) with the following error:
the stack trace says the problem is with haven't tested webpack/terser-webpack-plugin v5 Downgrading to yarn 3.1.1 fixes the issue: anyone can pinpoint exactly where I should report this problem? Seems the root problem is either in fsevents or maybe in jest-worker? |
@DanielHoffmann You're running into #4157 which is unrelated to this issue. |
Self-service
Describe the bug
This is replicable on first install only — on subsequent uninstall/reinstalls of
typescript@^4.5.1-rc
, the install appears to succeed but the symptoms still persist.To reproduce
Environment
System: OS: macOS 12.0 CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz Binaries: Node: 16.12.0 - /private/var/folders/zk/9kgkd8tx4fq9ptvlc7cc8f0c0000gn/T/xfs-59651938/node Yarn: 3.1.0 - /private/var/folders/zk/9kgkd8tx4fq9ptvlc7cc8f0c0000gn/T/xfs-59651938/yarn npm: 8.1.3 - ~/.npm/bin/npm
Additional context
No response
The text was updated successfully, but these errors were encountered: