donmccurdy / glTF-Transform

glTF 2.0 SDK for JavaScript and TypeScript, on Web and Node.js.
https://gltf-transform.dev
MIT License
1.43k stars 150 forks source link

Local 'watch' macro logs errors #1201

Closed donmccurdy closed 4 months ago

donmccurdy commented 11 months ago

Running yarn watch locally I'm seeing a lot of this error recently:

@gltf-transform/core: rpt2: options error TS2688: Cannot find type definition file for 'wrap-ansi'.
@gltf-transform/core:   The file is in the program because:
@gltf-transform/core:     Entry point for implicit type library 'wrap-ansi'

Builds still work but it's noisy, I'd like to figure out what causes that.

donmccurdy commented 11 months ago

RPT2 refers to https://github.com/ezolenko/rollup-plugin-typescript2/issues. Multiple copies of wrap-ansi are required by various dependencies. Newer versions have types, perhaps older ones don't, I suppose I could track down which dependency is bringing in a pre-types copy of wrap-ansi, but also not sure why this breaks RPT2... 😔