SAP-samples / hana-hdbext-promisfied-example

Example of how to use @sap/hdbext (standard node.js SAP HANA interface) via a promisfied wrapper.
Apache License 2.0
13 stars 8 forks source link

fsevents dependency causing mbt build failure #13

Closed jbibal-pdc closed 2 years ago

jbibal-pdc commented 2 years ago

Hi,

Running the mbt build command in preparation for deployment to Cloud Foundry fails using SAP Business Application Studio, caused by the fsevents module. image

Any idea how to bypass this? Or how to resolve this?

Thanks! John

jung-thomas commented 2 years ago

Are you saying that the introduction of the hdbext-promisified module is what causes this error? The module doesn't use fsevents directly. This does seem to be common issues with fsevents and several threads suggest removing your package-lock.json and running again. https://stackoverflow.com/questions/67987244/unsupported-platform-for-fsevents2-3-2-wanted-osdarwin-archany-cu https://stackoverflow.com/questions/66093284/unsupported-platform-for-fsevents2-3-2-installation-issue

jbibal-pdc commented 2 years ago

Hi @jung-thomas!

image

Yes but more of indirectly I suppose? It seems like one of the dependencies, as you mentioned is what's causing it. My guess is that it's mocha which uses chokidar, which then is dependent on fsevents.

But yes I did see most of those threads on Stackoverflow. I actually tried everything, and the only thing that worked for me was directly modifying the package-lock.json and changing the: "os": [ "darwin" ],

to: "os": [ "linux" ],

.. as a workaround. I just raised it on here to raise awareness or maybe find a more permanent solution.

naganaidu-rezi commented 1 year ago

how has this been closed ? it is still a problem and we literally broke our head to fix during npm run time with overrides but it didn't work. so we have also followed the same updating package-lock.json