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?]: TS 4.9.4 PnP Cannot find module
error
#5125
Comments
Cannot find module
error in VSCodeCannot find module
error
produces still a lots of this errors:
What i did wrong? Or is it a different / new issue? |
This has been released in a RC, not yet a patch release. |
You need |
Should this be closed? Considering that the bug is still present outside of the canary branch, took a lot longer to find this issue than would have been the case if it was still open. |
I've ran into this exact issue multiple times and yarn is always the last thing to check. So many hours wasted. Is there a better way to handle this type of issue when typescript is updated? A console warning or something would be very handy. Especially when yarn can fail on patches for typescript. |
+1, I've been checking back on this repo just about every day to see if |
I'll look at making a release tomorrow.
It already warns that the patch failed. |
This is what I'm getting in my console currently, when upgrading from typescript 4.9.3 to 4.9.4. Apologies if I'm not seeing it, but I can't see an error here? Is this a caching issue? Prehaps I fetched the patch before the bug was found and reported, so although it cannot be found remotely, I had a local version and Yarn uses that instead? |
* build: apply yarn pnp * chore: editor support * chore: downgrade typescript to 4.9.3 for yarn berry pnp editor support See: yarnpkg/berry#5125 (comment) * chore: add missing deps * build: apply yarn berry zero-install * ci: re-add yarn installation step * ci: change install option frozen-lockfile to immutable * ci: apply immutable-cache option * chore: add missing deps @next/swc-linux-x64-gnu
v3.3.1 has been released yarn set version berry
yarn
Note that you can watch the repo for releases to get a notification instead. |
Thank you for the tip! I've just added myself as a watcher to the repo for releases. 🙏 |
I just hit the error and fixed with the following steps:
It worked for me :) |
**User-Facing Changes** None **Description** Attempt to address build failure on #5182. May be related to yarn's built-in TS patch which was supposedly updated in 3.3.1 (yarnpkg/berry#5146 / yarnpkg/berry#5125).
Self-service
Describe the bug
When installing
typescript@4.9.4
withyarn@3.3.0
in VSCode,Cannot find module * or its corresponding type declarations.
is displayed.To reproduce
Environment
System: OS: macOS 12.6 CPU: (10) arm64 Apple M1 Max Binaries: Node: 18.12.1 - /private/var/folders/vz/s2tqygkj2rg1xtm390jsldjh0000gn/T/xfs-6dd637d6/node Yarn: 3.3.0 - /private/var/folders/vz/s2tqygkj2rg1xtm390jsldjh0000gn/T/xfs-6dd637d6/yarn npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm
Additional context
Error still occurs after
yarn dlx @yarnpkg/sdks vscode
. It worked fine when I used thetypescript@4.9.3
.The text was updated successfully, but these errors were encountered: