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]: buildType为bundleless模式下的dts 会报错 #5160

Closed
lemondreamtobe opened this issue Dec 27, 2023 · 2 comments
Closed

[Bug]: buildType为bundleless模式下的dts 会报错 #5160

lemondreamtobe opened this issue Dec 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@lemondreamtobe
Copy link

版本信息

System:
    OS: macOS 13.3.1
    CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
    Memory: 33.02 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 120.0.6099.129
    Safari: 16.4

问题详情

我尝试用bundleless模式下打包d.ts 但是报错

{
            buildType: 'bundleless',
            outDir: './dist/types',
            autoExternal: false,
            transformLodash: true,
            dts: {
              only: true,
            },
          }

复现链接

x

复现步骤

error ModuleBuildError:

bundleless DTS failed:

../../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';

@lemondreamtobe lemondreamtobe added the bug Something isn't working label Dec 27, 2023
@10Derozan
Copy link
Member

Can you give us a example? You can try to enable skipLibCheck.

@10Derozan
Copy link
Member

If you still have any question, please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants