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

rapier3d-compat package has incorrect raw.d.ts output #41

Closed
robertlong opened this issue Aug 31, 2021 · 2 comments
Closed

rapier3d-compat package has incorrect raw.d.ts output #41

robertlong opened this issue Aug 31, 2021 · 2 comments

Comments

@robertlong
Copy link

In the rapier3d-compat build the raw.d.ts file contains export * from "../pkg3d/rapier_wasm3d"; which does not exist in the distributed package. In the rapier3d build, this file is export * from "./rapier_wasm3d"; which would work just fine in the compat build.

This line is added for the rapier3d build here but I don't see a corresponding line for the compat build.

This results in typescript errors when building projects against the compat build such as:

node_modules/@dimforge/rapier3d-compat/dynamics/ccd_solver.d.ts:1:10 - error TS2305: Module '"../raw"' has no exported member 'RawCCDSolver'.

1 import { RawCCDSolver } from "../raw";
@sebcrozet
Copy link
Member

Hi! Thank you for pointing this out.
I made a release 0.7.3 of rapier-compat with a manual fix. Could you please try it?
I haven’t pushed the fix here on github yet because I need to figure out #43 first.

@sebcrozet
Copy link
Member

The fix has been automated in the version 0.7.6. Please reopen if the problem persists.

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