-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
@napi-rs/cli@2.15.2 generate duplicate definitions in .d.ts #1541
Comments
Try to upgrade |
Thanks! |
The definition still be repeated. napi-cli: 2.15.2 |
Hi,
I'm using
|
@miniben-90 Because of the limitations of the Rust macro, your case |
I don't have conditional compilation code, it works fine with 2.14.8. |
Thanks for your answer, but nothing change after adding skip_typescript... I switch back to 2.14.8 for |
@xiaopengli89 do you have a minimal reproducible repo? |
I removed the rust binding method, but it still generates the previous code, and it looks like |
We do cache the previous typedef because users may delete After removing rust binding method, you should compile your crate with |
I had the same behavior with 2.15.2 and can confirm reverting to 2.14.8 fixed the issue. |
The problem started on 2.15.1, so it's safe to keep on 2.15.0 too. #1531 |
This issue was closed as completed, but even with the latest version of @napi/cli, I got duplicated index.d.ts and index.js files. |
No description provided.
The text was updated successfully, but these errors were encountered: