Replies: 1 comment 2 replies
-
Hi @siclait! I assume you're using The intended use of the https://gltf-transform.donmccurdy.com/functions.html#simplify import { simplify } from '@gltf-transform/functions';
import { MeshoptSimplifier } from 'meshoptimizer';
await document.transform(
simplify({ simplifier: MeshoptSimplifier, ratio: 0.75 })
); That is, you are supposed to install But the type-only import does reference meshoptimizer. I haven't seen the error before but I guess it kind of makes sense, if Finally skipLibCheck might be a workaround here.
|
Beta Was this translation helpful? Give feedback.
-
I feel like I'm missing something obvious, but when I attempt to run my application that is using
@gltf-transform/[email protected]
, I'm getting an error about a missing dependency:My Typescript application has a transitive dependency on
[email protected]
, which is why I'm not seeing similar errors for othermeshoptimizer
imports. But MeshoptSimplifier was added between 0.16.1 and 0.18.1.Why isn't
meshoptimizer
listed as a dependency in@gltf-transform/functions
if it's being used by the package? How can I use the library without running into this error?Beta Was this translation helpful? Give feedback.
All reactions