-
Notifications
You must be signed in to change notification settings - Fork 0
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
Error while loading rule '@typescript-eslint/await-thenable': You have used a rule which requires parserServices to be generated #1
Comments
@wooorm you have any idea why this error is there? |
I don’t know TS so, /cc @ChristianMurphy! |
note: it is just a plain checkout of the fork with no changes. |
it looks like there is a breaking change: iamturns/eslint-config-airbnb-typescript#63 just now i have no clue how a |
We don’t use eslint-config-airbnb 🤔 |
The error is coming from |
is the best if i stick to 0.27.0 now? |
That works for me |
with 0.27.0 all works except error TS2688: Cannot find type definition file for 'babel__core'.
error TS2688: Cannot find type definition file for 'babel__template'. /Users/muescha/.nvm/versions/node/v12.13.1/bin/node /Users/muescha/.nvm/versions/node/v12.13.1/lib/node_modules/npm/bin/npm-cli.js run test-types --scripts-prepend-node-path=auto
> vfile-location@3.0.1 test-types /Users/muescha/Work/github/muescha/vfile-location
> dtslint types
Error: Errors in typescript@4.0 for external dependencies:
error TS2688: Cannot find type definition file for 'babel__core'.
error TS2688: Cannot find type definition file for 'babel__template'.
at /Users/muescha/Work/github/muescha/vfile-location/node_modules/dtslint/bin/index.js:198:19
at Generator.next (<anonymous>)
at fulfilled (/Users/muescha/Work/github/muescha/vfile-location/node_modules/dtslint/bin/index.js:6:58)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vfile-location@3.0.1 test-types: `dtslint types`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vfile-location@3.0.1 test-types script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/muescha/.npm/_logs/2020-05-20T16_11_59_063Z-debug.log
Process finished with exit code 1
|
@muescha could you try clearing |
i deleted the dir and checked out again. then i changed: -"xo": "^0.27.0"
+"xo": "0.27.0" but get the same error. i tested also with npm instead of yarn, and also with node 12.14.0 i have no idea what is different :( Full Logcd vfile-location/
[19:26:35] muescha:~/Work/github/muescha/vfile-location
$ nano package.json
[19:27:10] muescha:~/Work/github/muescha/vfile-location
$ yarn install
yarn install v1.22.4
info No lockfile found.
[1/4] 🔍 Resolving packages...
warning dtslint > @definitelytyped/utils > npm-registry-client > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning xo > globby > fast-glob > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning xo > globby > fast-glob > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning "xo > eslint-config-xo-typescript@0.26.0" has unmet peer dependency "typescript@>=3.5.3".
warning "xo > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
✨ Done in 55.73s.
[19:28:12] muescha:~/Work/github/muescha/vfile-location
$ yarn test-types
yarn run v1.22.4
$ dtslint types
Error: Errors in typescript@4.0 for external dependencies:
error TS2688: Cannot find type definition file for 'babel__core'.
error TS2688: Cannot find type definition file for 'babel__template'.
at /Users/muescha/Work/github/muescha/vfile-location/node_modules/dtslint/bin/index.js:198:19
at Generator.next (<anonymous>)
at fulfilled (/Users/muescha/Work/github/muescha/vfile-location/node_modules/dtslint/bin/index.js:6:58)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[19:29:29] muescha:~/Work/github/muescha/vfile-location
$ yarn build
yarn run v1.22.4
$ npm run build-bundle && npm run build-mangle
npm WARN lifecycle The node binary used for scripts is /var/folders/0j/6_kmjc_51bv7nn26xx2dvrdm0000gn/T/yarn--1589995776846-0.2731964989413658/node but npm is using /Users/muescha/.nvm/versions/node/v12.14.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> vfile-location@3.0.1 build-bundle /Users/muescha/Work/github/muescha/vfile-location
> browserify . -s vfileLocation > vfile-location.js
npm WARN lifecycle The node binary used for scripts is /var/folders/0j/6_kmjc_51bv7nn26xx2dvrdm0000gn/T/yarn--1589995776846-0.2731964989413658/node but npm is using /Users/muescha/.nvm/versions/node/v12.14.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> vfile-location@3.0.1 build-mangle /Users/muescha/Work/github/muescha/vfile-location
> browserify . -s vfileLocation -p tinyify > vfile-location.min.js
✨ Done in 7.29s.
[19:29:43] muescha:~/Work/github/muescha/vfile-location
$ yarn test-types
yarn run v1.22.4
$ dtslint types
Error: Errors in typescript@4.0 for external dependencies:
error TS2688: Cannot find type definition file for 'babel__core'.
error TS2688: Cannot find type definition file for 'babel__template'.
at /Users/muescha/Work/github/muescha/vfile-location/node_modules/dtslint/bin/index.js:198:19
at Generator.next (<anonymous>)
at fulfilled (/Users/muescha/Work/github/muescha/vfile-location/node_modules/dtslint/bin/index.js:6:58)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[19:30:01] muescha:~/Work/github/muescha/vfile-location
$ node --version
v12.14.0 |
🤔 the error specifically happens in TypeScript 4, with is the unreleased next major version. |
if i delete the 4.0 then it reinstalls it? $rm -rf ~/.dts/typescript-installs/4.0/
$yarn test-types
yarn run v1.22.4
$ dtslint types
Installing to /Users/muescha/.dts/typescript-installs/4.0...
Installed!
Error: Errors in typescript@4.0 for external dependencies:
error TS2688: Cannot find type definition file for 'babel__core'.
error TS2688: Cannot find type definition file for 'babel__template'.
at /Users/muescha/Work/github/muescha/vfile-location/node_modules/dtslint/bin/index.js:198:19
at Generator.next (<anonymous>)
at fulfilled (/Users/muescha/Work/github/muescha/vfile-location/node_modules/dtslint/bin/index.js:6:58)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
did you need my yarn.lock? |
it looks like dtslint depends on the next: yarn why typescript
yarn why v1.22.4
[1/4] 🤔 Why do we have the module "typescript"...?
[2/4] 🚚 Initialising dependency graph...
[3/4] 🔍 Finding dependency...
[4/4] 🚡 Calculating file sizes...
=> Found "typescript@4.0.0-dev.20200520"
info Reasons this module exists
- "dtslint" depends on it
- Hoisted from "dtslint#typescript"
info Disk size without dependencies: "52.65MB"
info Disk size with unique dependencies: "52.65MB"
info Disk size with transitive dependencies: "52.65MB"
info Number of shared dependencies: 0
=> Found "dts-critic#typescript@3.9.3"
info This module exists because "dtslint#dts-critic" depends on it.
info Disk size without dependencies: "52.31MB"
info Disk size with unique dependencies: "52.31MB"
info Disk size with transitive dependencies: "52.31MB"
info Number of shared dependencies: 0
✨ Done in 0.89s. from yarn.lock: dtslint@^3.0.0:
version "3.6.3"
resolved "https://registry.yarnpkg.com/dtslint/-/dtslint-3.6.3.tgz#be93c74fe00f99be6a89bab3b943d733c8c27893"
integrity sha512-7zm45PbN6TQ6N/5gFPKveHt6zybgO+Xq50cviemLLyfbAhkh7I5ZZAE5adn5WjryjN36amkL0vtf1r0+7gWE2w==
dependencies:
"@definitelytyped/header-parser" "0.0.34"
"@definitelytyped/typescript-versions" "0.0.34"
"@definitelytyped/utils" "0.0.34"
dts-critic "^3.2.2"
fs-extra "^6.0.1"
json-stable-stringify "^1.0.1"
strip-json-comments "^2.0.1"
tslint "5.14.0"
typescript next
yargs "^15.1.0" |
Exactly, it's a cache,
One more thing to try, add |
I've mostly been testing with npm, I checked with yarn and didn't see any difference. I'm running
|
this is my setup: $node --version
v12.14.0
$npm --version
6.13.4
$yarn --version
1.22.4 i will upgrade node via nvm and then npm too and i check if your lockfile works better PS: i will continue it tomorrow :) |
i get this error while using:
full log:
Full Logfile
The text was updated successfully, but these errors were encountered: