mauricescheff
mauricescheff
CDCloudflare Developers
Created by mauricescheff on 7/16/2024 in #workers-help
OpenAI nodeJS library stopped working since last deploy about an hour ago
Thank you so much @akazwz ! I figured it out... So I was importing a function from a barrel file and one of the other functions was also being imported (I'm not sure exactly how that works underneath) and the other function was importing using a heavy library. I removed the import and now it works! 🎉
12 replies
CDCloudflare Developers
Created by mauricescheff on 7/16/2024 in #workers-help
OpenAI nodeJS library stopped working since last deploy about an hour ago
Thanks! I'm going to look into it again... and also try with simple example to see how to reproduce it, and if not it's maybe something else...
12 replies
CDCloudflare Developers
Created by mauricescheff on 7/16/2024 in #workers-help
OpenAI nodeJS library stopped working since last deploy about an hour ago
ok... I downloaded my wrangler.toml and then I realized the nodejs_compatibility flag was already there, I redeployed with wrangler.toml and the nodejs_compatibility flag and I'm still getting this error when I import the OpenAI NodeJs library: (error) Error: Dynamic require of "node:util" is not supported
12 replies
CDCloudflare Developers
Created by mauricescheff on 7/16/2024 in #workers-help
OpenAI nodeJS library stopped working since last deploy about an hour ago
I see that it works with: npx wrangler pages dev [<DIRECTORY>] --compatibility-flags="nodejs_compat" but I can't do wrangler pages deploy --compatibility-flags="nodejs_compat" It was working without the flag though, until today...
12 replies
CDCloudflare Developers
Created by mauricescheff on 7/16/2024 in #workers-help
OpenAI nodeJS library stopped working since last deploy about an hour ago
I'm using wrangler pages deploy so I don't have access to wrangler.toml Any other way I can enable nodejs_compat?
12 replies
CDCloudflare Developers
Created by mauricescheff on 1/23/2024 in #pages-discussions
jose works! Thanks @Hello, I’m Alastair!
I figured that this doesn't work, and ended up changing my systems architecture, I spent a lot of time trying to get this to work. I believe it's not a bad idea for other developers (specially new ones), to highlight what workers can and can't do and suggest an architecture or alternative solutions in case you want to do x, y....
1 replies