Title: "Parsing error" when using Yarn 2.0's Plug 'n' Play · Issue #1592 · typescript-eslint/typescript-eslint · GitHub
Open Graph Title: "Parsing error" when using Yarn 2.0's Plug 'n' Play · Issue #1592 · typescript-eslint/typescript-eslint
X Title: "Parsing error" when using Yarn 2.0's Plug 'n' Play · Issue #1592 · typescript-eslint/typescript-eslint
Description: I just migrated to Yarn 2.0 and enabled PnP. Got our webpack + babel + TypeScript pipeline up and running. Eslint, however, both when run through the CLI and as part of Webpack, throws OOM errors. Running eslint with --debug, I could see...
Open Graph Description: I just migrated to Yarn 2.0 and enabled PnP. Got our webpack + babel + TypeScript pipeline up and running. Eslint, however, both when run through the CLI and as part of Webpack, throws OOM errors. ...
X Description: I just migrated to Yarn 2.0 and enabled PnP. Got our webpack + babel + TypeScript pipeline up and running. Eslint, however, both when run through the CLI and as part of Webpack, throws OOM errors. ...
Opengraph URL: https://github.com/typescript-eslint/typescript-eslint/issues/1592
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"Parsing error\" when using Yarn 2.0's Plug 'n' Play","articleBody":"I just migrated to Yarn 2.0 and enabled PnP. Got our webpack + babel + TypeScript pipeline up and running. Eslint, however, both when run through the CLI and as part of Webpack, throws OOM errors. Running eslint with --debug, I could see that something in the plugin chain throws an error and if you get enough of them, a generic OOM triggers. Basically all files being checked throw this error.\r\n\r\n**What did you expect to happen?**\r\n\r\nBeing able to run eslint w/ `@typescript-eslint/plugin` on our TypeScript code base.\r\n\r\n**What actually happened?**\r\n\r\n```\r\neslint:cli-engine Lint [redacted]\\wwwroot\\app\\helpers.ts +0ms\r\n eslint:linter Linting code for [redacted]\\wwwroot\\app\\helpers.ts (pass 1) +0ms\r\n eslint:linter Verify +0ms\r\n eslint:linter With ConfigArray: [redacted]\\wwwroot\\app\\helpers.ts +1ms\r\n eslint:linter Parsing error: Cannot destructure property `name` of 'undefined' or 'null'.\r\n eslint:linter TypeError: Cannot destructure property `name` of 'undefined' or 'null'.\r\n at getPackageInformation ([redacted]\\.pnp.js:29078:33)\r\n at Object.getPackageInformation ([redacted]\\.pnp.js:29398:20)\r\n at getPnpTypeRoots ([redacted]\\.yarn\\cache\\typescript-patch-fea84800fa-1.zip\\node_modules\\typescript\\lib\\typescript.js:27922:42)\r\n at getDefaultTypeRoots ([redacted]\\.yarn\\cache\\typescript-patch-fea84800fa-1.zip\\node_modules\\typescript\\lib\\typescript.js:27938:24)\r\n at getEffectiveTypeRoots ([redacted]\\.yarn\\cache\\typescript-patch-fea84800fa-1.zip\\node_modules\\typescript\\lib\\typescript.js:27893:20)\r\n at Object.getAutomaticTypeDirectiveNames ([redacted]\\.yarn\\cache\\typescript-patch-fea84800fa-1.zip\\node_modules\\typescript\\lib\\typescript.js:28068:29)\r\n at Object.createProgram ([redacted]\\.yarn\\cache\\typescript-patch-fea84800fa-1.zip\\node_modules\\typescript\\lib\\typescript.js:95251:56)\r\n at Object.getBuilderCreationParameters ([redacted]\\.yarn\\cache\\typescript-patch-fea84800fa-1.zip\\node_modules\\typescript\\lib\\typescript.js:98523:29)\r\n at createSemanticDiagnosticsBuilderProgram ([redacted]\\.yarn\\cache\\typescript-patch-fea84800fa-1.zip\\node_modules\\typescript\\lib\\typescript.js:98839:100)\r\n at createNewProgram ([redacted]\\.yarn\\cache\\typescript-patch-fea84800fa-1.zip\\node_modules\\typescript\\lib\\typescript.js:100505:30) +2s\r\n```\r\nI cannot tell if this is a bug in the parser, the plugin, or in the PnP API, or Yarn's bundled patched TypeScript compiler, or a combination. However, disabling `@typescript-eslint/parser` and running the same setup on a `.js` file works fine., so hence why I'm posting it here. I've also disabled all other eslint plugins with no change, so any of those shouldn't be the culprit either.\r\n\r\n**Versions**\r\n\r\n| package | version |\r\n| --------------------------- | ------- |\r\n| `@typescript-eslint/parser` | `2.19.2` |\r\n| `TypeScript` | `3.7.5` * |\r\n| `babel` | `7.8.4` |\r\n| `ESLint` | `6.8.0` |\r\n| `node` | `10.16.3` |\r\n| `yarn` | `2.0.0-rc28` |\r\n*: only used for manually invoking a project-wide type-checking from the CLI (works perfectly fine), otherwise Babel is doing the transpiling","author":{"url":"https://github.com/jstaro","@type":"Person","name":"jstaro"},"datePublished":"2020-02-11T15:32:52Z","url":"https://github.com/typescript-eslint/typescript-eslint/issues/1592"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:83b15b65-440d-1606-6dd6-c1aad8572be2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A998:1F1E:A25606:D8C743:6AEDA185 |
| html-safe-nonce | eef855b15dbbd68cbaa2a6e548ffb6c85714f270b888a2ae5643dc79452f219a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTk4OjFGMUU6QTI1NjA2OkQ4Qzc0Mzo2QUVEQTE4NSIsInZpc2l0b3JfaWQiOiIzNjM3Njc3Nzk5MzA1NDg2NzI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cc2d543fb9e6da1acc25768402c39c9c79e760cba696aceb20f9547d245596ff |
| hovercard-subject-tag | issue:563287387 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/typescript-eslint/typescript-eslint/1592/issue_layout |
| twitter:image | https://opengraph.githubassets.com/82309ee47ce7a10f196d6ac577437f53f783f3c92e620b5395516f2664c45719/typescript-eslint/typescript-eslint/issues/1592 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/82309ee47ce7a10f196d6ac577437f53f783f3c92e620b5395516f2664c45719/typescript-eslint/typescript-eslint/issues/1592 |
| og:image:alt | I just migrated to Yarn 2.0 and enabled PnP. Got our webpack + babel + TypeScript pipeline up and running. Eslint, however, both when run through the CLI and as part of Webpack, throws OOM errors. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jstaro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9f51e3b6c7a190e426e641ae15acbc58dd1ac2003e96b58879bbc298e213dbf3 |
| turbo-cache-control | no-preview |
| go-import | github.com/typescript-eslint/typescript-eslint git https://github.com/typescript-eslint/typescript-eslint.git |
| octolytics-dimension-user_id | 46634674 |
| octolytics-dimension-user_login | typescript-eslint |
| octolytics-dimension-repository_id | 165536154 |
| octolytics-dimension-repository_nwo | typescript-eslint/typescript-eslint |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 165536154 |
| octolytics-dimension-repository_network_root_nwo | typescript-eslint/typescript-eslint |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7060660810b587033ea861b8aa67beb72c8e6542 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width