Skip to content

No config argument to the rhino3dm module defined in typescript #706

@nijotz

Description

@nijotz

I was able to fix an issue I had, which is described here, where the rhino module wasn't finding my wasm file. I was told by ChatGPT to add a locateFile key to the config object I pass to the module, like so:

rhinoModule = await rhino3dm({ locateFile: (file: string) => `/_next/static/${file}` });

This worked. When I debug the javascript in the browser, the introspection tools tell me that the module does indeed take a config object.

Image

But the types say otherwise. I get type errors in my editor ("Expected 0 arguments, but got 1.")

This is with rhino 8.17.0

Related to #433, #470

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