Skip to content

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

@robertlong

Description

@robertlong

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";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions