Skip to content

Api extractor will strip declare var content after bundling types #416

@ghiscoding

Description

@ghiscoding

Describe the bug

Hello, I seem to get a regression bug with the new v4.5.1 in my project, I'm getting this error but only with the new version. If I try again the old version, by fixing the version to 4.5.0 in my package.json, then it works again without errors.

[vite:dts] Internal Error: Unable to follow symbol for "__VLS_PrettifyGlobal"

Reproduction

https://github.com/ghiscoding/slickgrid-universal/actions/runs/13590117309/job/37997418809

Steps to reproduce

git clone https://github.com/ghiscoding/slickgrid-universal
pnpm install
pnpm run bundle
pnpm run vue:build:framework

Note after cloning the repo, you have to modify the frameworks/slickgrid-vue/package.json to use latest version of vite-plugin-dts which is not currently the latest since it caused a regression

The project is a monorepo, which might be a little too large but I hope that you can find the issue without requiring another project repro. Again it's really caused by the latest version only, 4.5.0 is ok but 4.5.1 is breaking

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 2.93 GB / 15.85 GB
  Binaries:
    Node: 20.13.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.15.5 - C:\GitHub\slickgrid-universal\node_modules\.bin\pnpm.CMD
  Browsers:
    Edge: Chromium (131.0.2903.112)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    @vitejs/plugin-vue: ^5.2.1 => 5.2.1 
    vite: catalog: => 6.0.11 
    vite-plugin-dts: ^4.5.1 => 4.5.1

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamSomething about upstream packages

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions