iTwin / itwinjs-core

Monorepo for iTwin.js Library
https://www.itwinjs.org
MIT License
624 stars 212 forks source link

Unable to download briefcase using Node 18 (Works in Node 16) #5741

Closed beolson closed 1 year ago

beolson commented 1 year ago

Describe the bug I can download a briefcase when using Node 16.20.0, but the exact same code will not work when running Node 18.16.0.
I don't get any errors, it just hangs and does not return from the BriefcaseManager.downloadBriefcase function -

To Reproduce My implementation is here: src/ModelExtract/BriefcaseAccessor.ts

Expected behavior Expect it to behave the same running under Node 18.16 as when running under Node 16.20

pmconne commented 1 year ago

Please consult our support matrix. 2.19.x is quite old (in fact, it's at end of life) and does not officially support versions of Node later than 14. Node 18 is supported by iTwin.js 3.5 and later.

beolson commented 1 year ago

This got me pointed in the right direction.

I got pointed in the wrong direction originally by this document - https://www.itwinjs.org/learning/tutorials/develop-agent/. It points to this repository that uses the old packages.