Ajay
Ajay2mo ago

BAML Support

I'd love to see @boundaryml/baml supported. Doing this:
{
"node": {
"externalPackages": ["@boundaryml/baml"]
}
}
{
"node": {
"externalPackages": ["@boundaryml/baml"]
}
}
Is not enough. Why?
No loader is configured for ".node" files: node_modules/@boundaryml/baml-darwin-arm64/baml.darwin-arm64.node

node_modules/@boundaryml/baml/native.js:159:23:
159 │ return require('@boundaryml/baml-darwin-arm64')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No loader is configured for ".node" files: node_modules/@boundaryml/baml-darwin-arm64/baml.darwin-arm64.node

node_modules/@boundaryml/baml/native.js:159:23:
159 │ return require('@boundaryml/baml-darwin-arm64')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In addition to that, generated code from @baml you need to add the "use node"; directive ontop of every generated file in an /actions folder (which is fine with AI). Has anyone found a work around? Citations of other attempts in comments.
2 Replies
Convex Bot
Convex Bot2mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Ajay
AjayOP2mo ago
https://discord.com/channels/1019350475847499849/1382075049582006362/1382075049582006362 Does not appear to be a valid workaround. Suggestions on how to deal with generated code: https://discord.com/channels/1019350475847499849/1019350478817079338/1380977961141932032 Presently my workaround is to use OpenAI tool calling and structured outputs directly.

Did you find this page helpful?