AjayA
Convex Community8mo ago
4 replies
Ajay

BAML Support

I'd love to see
@boundaryml/baml
supported. Doing this:

{
    "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')
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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.
Was this page helpful?