microsoft / kiota-samples

sample generation SDKs for Kiota
https://aka.ms/kiota/docs
MIT License
85 stars 34 forks source link

ERR_REQUIRE_ESM #6753

Closed chandraarora closed 2 weeks ago

chandraarora commented 2 weeks ago

Hi

I just clone the sample project and run the typescript script project. I get error

ic import() which is available in all CommonJS modules. at Object. (kiota-samples\get-started\quickstart\typescript\out\index.js:15:30) { code: 'ERR_REQUIRE_ESM' }

Could you please let me know what is wrong here?

Thanks Chandra

baywet commented 2 weeks ago

Hi @chandraarora Thank you for using kiota and for reaching out.

The samples were trailing behind the ongoing development efforts. I have put a PR together to refresh them.

6755

Let us know if you have any additional comments or questions.