Skip to content
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]: yargs-parser typings are broken #13092

Closed
ziermach opened this issue Aug 4, 2022 · 3 comments
Closed

[Bug]: yargs-parser typings are broken #13092

ziermach opened this issue Aug 4, 2022 · 3 comments

Comments

@ziermach
Copy link

ziermach commented Aug 4, 2022

Version

28.1.3

Steps to reproduce

just use jest with typescript and try to build

Expected behavior

to build jest successfully

Actual behavior

jest fail to build because @types/yargs-parser are broken

node_modules/@types/yargs/index.d.ts:28:10 - error TS2305: Module '"yargs-parser"' has no exported member 'DetailedArguments'.

28 import { DetailedArguments, Configuration } from 'yargs-parser';

node_modules/@types/yargs/index.d.ts:28:29 - error TS2305: Module '"yargs-parser"' has no exported member 'Configuration'.

28 import { DetailedArguments, Configuration } from 'yargs-parser';

Additional context

see yargs/yargs-parser#452 for more context

sems yargs-parser has now its own typings

Environment

System:
    OS: macOS 12.5
    CPU: (8) arm64 Apple M1
  Binaries:
    Node: 18.5.0 - /opt/homebrew/bin/node
    npm: 8.16.0 - ~/Projects/core-library/node_modules/.bin/npm
  npmPackages:
    jest: ^28.1.3 => 28.1.3
@xtovski
Copy link

xtovski commented Aug 5, 2022

The error is caused by package @types/yargs-parser broken,

Downgrade to jest@27.5.1 fixed this problem for me

xtovski added a commit to xorde-labs/log-utils that referenced this issue Aug 5, 2022
@SimenB
Copy link
Member

SimenB commented Aug 5, 2022

yargs/yargs-parser#452 (comment)

Just update yargs-parser in your lockfiles

(the errors are coming from @types/yargs, so the issue doesn't belong in this repo regardless)

@SimenB SimenB closed this as completed Aug 5, 2022
@github-actions
Copy link

github-actions bot commented Sep 5, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants