jonobr1 / two.js

A renderer agnostic two-dimensional drawing api for the web.
https://two.js.org
MIT License
8.27k stars 454 forks source link

compile error typescript[Bug] #708

Closed detrothe closed 10 months ago

detrothe commented 10 months ago

I get a compiler error with current version 0.8.11 of two.js with typescript compiler tsc Version 5.2.2 . The error only happens with the typescript compiler tsc, which is used by vite to build the distribution version. The debug version with esbuild, which has its own typescript compiler?, works fine. The Problem existes on local machines (windows and Linux) and when deploying on Netlify.

tsc && vite build line 2851: error TS2304: Cannot find name 'Anchor' left: Anchor; line 2857: error TS2304: Cannot find name 'Anchor' right: Anchor; Found 2 errors in the same file, ...

I had no problems in version 0.8.10

Hope it helps.

jonobr1 commented 10 months ago

Thanks, this PR should resolve this issue: https://github.com/jonobr1/two.js/pull/709

detrothe commented 10 months ago

Hi,

Thank you, now it works.

Am 03.10.23 um 20:56 schrieb Jono:

Thanks, this PR should resolve this issue: #709 https://github.com/jonobr1/two.js/pull/709

— Reply to this email directly, view it on GitHub https://github.com/jonobr1/two.js/issues/708#issuecomment-1745544752, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXNO53P3STSY355GENG23Z3X5RNUXAVCNFSM6AAAAAA5Q4RFLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBVGU2DINZVGI. You are receiving this because you authored the thread.Message ID: @.***>