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

error TS7029: Fallthrough case in switch #28

Closed
kaiyoma opened this issue May 22, 2023 · 2 comments
Closed

error TS7029: Fallthrough case in switch #28

kaiyoma opened this issue May 22, 2023 · 2 comments

Comments

@kaiyoma
Copy link

kaiyoma commented May 22, 2023

I just tried migrating from the old json2csv package to the new one, and now I'm getting type errors from within node_modules:

../../common/temp/node_modules/.pnpm/@streamparser+json@0.0.12/node_modules/@streamparser/json/src/tokenizer.ts:374:11 - error TS7029: Fallthrough case in switch.

374           case TokenizerStates.STRING_UNICODE_DIGIT_4:
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../../common/temp/node_modules/.pnpm/@streamparser+json@0.0.12/node_modules/@streamparser/json/src/tokenizer.ts:500:11 - error TS7029: Fallthrough case in switch.

500           case TokenizerStates.NUMBER_AFTER_E:
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../../common/temp/node_modules/.pnpm/@streamparser+json@0.0.12/node_modules/@streamparser/json/src/tokenizer.ts:697:18 - error TS6133: 'parsedToken' is declared but its value is never read.

697   public onToken(parsedToken: ParsedTokenInfo): void {
                     ~~~~~~~~~~~

../../common/temp/node_modules/.pnpm/@streamparser+json@0.0.12/node_modules/@streamparser/json/src/tokenparser.ts:324:18 - error TS6133: 'parsedElementInfo' is declared but its value is never read.

324   public onValue(parsedElementInfo: ParsedElementInfo): void {
                     ~~~~~~~~~~~~~~~~~


Found 4 errors in 2 files.

Errors  Files
     3  ../../common/temp/node_modules/.pnpm/@streamparser+json@0.0.12/node_modules/@streamparser/json/src/tokenizer.ts:374
     1  ../../common/temp/node_modules/.pnpm/@streamparser+json@0.0.12/node_modules/@streamparser/json/src/tokenparser.ts:324
@juanjoDiaz
Copy link
Owner

Please read before publishing. This was already reported as #26 and already fixed in version 14.

This issue should go to the json2csv repo.
And I'm about to update it there as well 🙂

@kaiyoma
Copy link
Author

kaiyoma commented May 22, 2023

I just installed the latest version of @json2csv/plainjs and version 0.0.12 of this package was installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants