For some reason bun does not work at my end. I have tried it on Linux and Windows.
I have the following package.json:
{
"scripts": {
"aitas": "bun run ./src/script.ts"
},
"dependencies": {
"openai": "^4.29.2",
},
"exports": {
".": {
"require": "./src/script.ts",
"import": "./src/script.ts"
}
}
}
And I get the following Error:
error: Cannot find module "openai/resources" from "/home/user/project/src/script.ts"