2 / 3
Jul 2024

I’d like to use the latest version of the openai npm library in my Atlas functions, but when I try to push my changes I get the error:

push failed: failed to install dependencies: failed to transpile node_modules/node-domexception/.history/index_20210527213843.js. "node-dome

So, I currently have to use the older version 3.3.0 of the openai library. This works ok for now, but I’d like to be able to use the latest version to take advantage of the latest features.

The issue appears to be that they added the node-domexception dependency in version 4 of the library, which does not appear to be compatible with Atlas’s transpiling capabilities.

Are you guys aware of this issue? Could you try to add support for the latest version of the openai npm library?

Thanks,
Elias

Hi @Elias_Heffan1 ,

The current engine behind the App Services Functions has Node.js 10.18.1 as its compatibility target, so many newer npm modules cannot be used, for one reason or another. While it’s very possible this may be one of them, there isn’t at this time a task to address this particular issue, however there’s ongoing work to update the engine to support newer Node.js modules, even though we don’t have a release date yet.

Ok thanks for the information on this, looking forward to when you complete the ongoing work to update your engine–it would be immensely helpful!