vite-plugin-dts icon indicating copy to clipboard operation
vite-plugin-dts copied to clipboard

[vite:dts] Cannot read properties of undefined (reading 'length')

Open webkong opened this issue 4 months ago • 2 comments

Describe the bug

When I use dts according to documentation.

import dts from "vite-plugin-dts";

plugins: [dts()]

image

I'm try to fix the bug. Add a ? can resove.

image

Reproduction

no url

Steps to reproduce

No response

System Info

System:
    OS: macOS 15.0.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 71.48 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.0 - ~/.nvm/versions/node/v18.18.0/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v18.18.0/bin/npm
  Browsers:
    Chrome: 129.0.6668.91
    Safari: 18.0.1
  npmPackages:
    vite: ^5.4.8 => 5.4.8 
    vite-plugin-dts: ^4.2.3 => 4.2.3

Validations

webkong avatar Oct 09 '24 11:10 webkong