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

【Regression】Library which use IterableIterator.entries() cause TS Error. #323

Open
3 tasks done
pronitsateli731 opened this issue Apr 22, 2024 · 2 comments
Open
3 tasks done

Comments

@pronitsateli731
Copy link

pronitsateli731 commented Apr 22, 2024

Describe the bug

I develop a library which use Vue having multiple entry points, which has utility functions not only components.
In them, some functions use IterableIterator.entries().
Those can build in vite-plugin-dts 3.7.2, but when I upgrade vite-plugin-dts >= 3.8.0, TS error happened.
For example for reproduction, this simple function
スクリーンショット 2024-04-22 095657
cause error as below.
スクリーンショット 2024-04-22 095311

Reproduction

https://github.com/pronitsateli731/vite-plugin-dts-report-r60421

Steps to reproduce

Run npm install and npm run build.

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12400F
    Memory: 39.72 GB / 47.81 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @vitejs/plugin-vue: ^5.0.4 => 5.0.4 
    vite: ^5.2.8 => 5.2.9 
    vite-plugin-dts: ^3.8.3 => 3.8.3

Validations

@qmhc
Copy link
Owner

qmhc commented Apr 22, 2024

You can add tsconfigPath: resolve(dirname(fileURLToPath(import.meta.url)), './tsconfig.app.json') to the plugin options as workaround currently.

@pronitsateli731
Copy link
Author

This options works.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants