Comments (4)
This is a duplicate of #6270. For the time being, you can use "typescript.tsserver.experimental.useVsCodeWatcher": false
to work around this.
from berry.
@c-eberling we found the solution that worked for us. it's a vscode setting called "typescript.tsserver.experimental.useVsCodeWatcher"
that somehow got turned on by default, but didn't show up in the settings.json
file. set it to false
and reload your window. Hope this helps, and good luck.
from berry.
@c-eberling did you ever get this working? I just reset my computer to factory settings and reinstalled everything, all to get the same error. My coworker has the same setup as far as we can tell and has had no issues.
from berry.
"typescript.tsserver.experimental.useVsCodeWatcher" that somehow got turned on by default,
VS Code turned this on as a default for all users on TS 5.4+. Since it's a new default, you won't see it in your settings json
For now you can turn the setting off in your user or workspace settings but the root cause is the yarn side and will need to be fixed here
Here's the exception that seems to cause the crash:
Error: Debug Failure. False expression: Should only call `IOSession.prototype.event` on an initialized IOSession
at fail (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:4010:15)
at Object.assert (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:4031:7)
at IpcIOSession.event (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/tsserver.js:497:32)
at IpcIOSession.defaultEventHandler (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:189322:14)
at _ProjectService.eventHandler (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:189225:83)
at getOrCreateFileWatcher (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:184688:15)
at Object.watchFile2 [as watchFile] (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:184657:12)
at watchFile (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:122785:67)
at Object.watchFile (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:122854:92)
at createFileWatcherWithLogging (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:122827:44)
at Object.watchFile (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:122804:283)
at _ProjectService.watchPnpFile (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:187802:30)
at new _ProjectService (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:184865:28)
at new _Session (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:189254:27)
at new IOSession (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/tsserver.js:471:7)
at new IpcIOSession (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/tsserver.js:533:3)
at startNodeSession (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/tsserver.js:570:34)
at start (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/tsserver.js:630:3)
at Object.<anonymous> (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/tsserver.js:647:1)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
at require$$0.Module._extensions..js (/Users/matb/projects/sandbox/.pnp.cjs:8890:33)
at Module.load (node:internal/modules/cjs/loader:1098:32)
at Module._load (node:internal/modules/cjs/loader:945:12)
at c._load (node:electron/js2c/node_init:2:13672)
at require$$0.Module._load (/Users/matb/projects/sandbox/.pnp.cjs:8735:31)
at Module.require (node:internal/modules/cjs/loader:1122:19)
at require (node:internal/modules/helpers:130:18)
at Object.<anonymous> (/Users/matb/projects/sandbox/.yarn/sdks/typescript/lib/tsserver.js:232:32)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
at Module.load (node:internal/modules/cjs/loader:1098:32)
at Module._load (node:internal/modules/cjs/loader:945:12)
at c._load (node:electron/js2c/node_init:2:13672)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:96:12)
at node:internal/main/run_main_module:23:47'
from berry.
Related Issues (20)
- [Feature] Support yarn.config.mjs
- Clarify use of `require` in Plugin Tutorial
- [Bug?]: Yarn 4 resets "bin" field in package.json after install/link operations HOT 3
- im lost
- [Feature] Support @vtsls/language-server
- [Feature] Peer requirement explain command filter flag HOT 2
- yarn link fails: "Can't link the project to itself" when trying to link to a package in a separate folder. After upgrading from yarn 1.x HOT 4
- [Bug?]: Install in dockerfile without user interaction not possible HOT 4
- [Bug?]: CHANGELOG.md hasn't updated since Yarn 4.1, and website also does not have updates HOT 1
- create https://github.com/Deuces9ers
- [Bug?]: Yarn pnp fails with synckit and prettier plugin in eslint context HOT 11
- [Bug?]: `ERR_REQUIRE_ESM` in Yarn PnP mode using Node.js 22 with `--experimental-require-module` flag
- [Documentation] YN0058 is a valid error code but missing from documentation
- Provide control over concurrency of dependency builds HOT 1
- [Bug?]: `yarn install` conflict resolution does not in non-git repositories HOT 2
- [Bug?]: `--no-defaults` flag is ignore on `yarn config` when the `--json` flag is present
- [Bug]: yarn install says it received 'malformed response'
- [Bug?]: `node:test` not recognised as built-in module by @yarnpkg/doctor HOT 2
- [Feature] A plugin hook when `yarn npm publish` is run HOT 1
- [Bug?]: yarn removes custom dependency grouping from `package.json` during `yarn install` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from berry.