Skip to content

node_modules/parse5/dist/index.d.ts:1:15 - error TS1005: ',' expected. #878

Closed
@ilrein

Description

I'm currently using vite (which uses parse5 internally) and vercel. While building serverless functions in vercel, I notice I am always getting typescript errors from parse5.

It doesn't actually impact the development and nothing fails, but it does fill my console with issues.

IE:

node_modules/parse5/dist/index.d.ts:1:15 - error TS1005: ',' expected.

1 import { type ParserOptions } from './parser/index.js';
                ~~~~~~~~~~~~~

node_modules/parse5/dist/index.d.ts:4:15 - error TS1005: ',' expected.

4 export { type DefaultTreeAdapterMap, defaultTreeAdapter } from './tree-adapters/default.js';
                ~~~~~~~~~~~~~~~~~~~~~

node_modules/parse5/dist/index.d.ts:6:15 - error TS1005: ',' expected.

6 export { type ParserOptions, /** @internal */ Parser } from './parser/index.js';
                ~~~~~~~~~~~~~

Currently finds 27 errors. I would love to find a way to silence or remove/fix these, but have no idea how to approach it 🤔

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions