typescript error TS1005: ',' expected.

See original GitHub issue

Hello, first of all thank you for this package. I’m having a problem with it. When I run yarn tsc --noEmit

node_modules/htmlparser2/lib/index.d.ts:2:23 - error TS1005: ',' expected.

2 export { Parser, type ParserOptions };
                         ~~~~~~~~~~~~~

node_modules/htmlparser2/lib/index.d.ts:4:27 - error TS1005: ',' expected.

4 export { DomHandler, type DomHandlerOptions };
                             ~~~~~~~~~~~~~~~~~

node_modules/htmlparser2/lib/index.d.ts:32:37 - error TS1005: ',' expected.

32 export { default as Tokenizer, type Callbacks as TokenizerCallbacks, } from "./Tokenizer.js";
                                        ~~~~~~~~~

it gives these errors. How can he solve this? Thanks.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ldr-devcommented, Nov 11, 2022

Thank you very much for your answers. I can’t update the typescript version for now. When I update the Typescript package, I will use the latest version of this package.

0reactions
remarkablemarkcommented, Nov 11, 2022

There is no problem but all new updates will be on the latest version

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript error TS1005: ';' expected (II) - Stack Overflow
If you're getting error TS1005: 'finally' expected. , it means you forgot to implement catch after try . Generally, it means the syntax...
Read more >
TypeScript error TS1005 when building with version 4.1.1 #3916
Describe the bug I updated to version 4.1.1 from version 4.0.2 today and when I try to build, I get two errors: ...
Read more >
TypeScript TS1005: ',' expected IDE warning
Often times when I use a tagged template literal in a new file, I receive this TypeScript error from WebStorm. However, this is...
Read more >
TypeScript - expected ts 1005 | Edureka Community
I'm getting an error: ',' expected.ts(1005). The only answers I find say that typescript is out of date but I'm using 3.7.2
Read more >
spfx - Office-ui-fabric-react error TS1005: ',' expected
[10:33:52] Error - typescript - node_modules\@uifabric\utilities\lib\BaseComponent.d.ts(105,4): error TS1005: ',' expected. I get a bunch of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found