https://www.boundaryml.com logo
no loader configured for .node file error Vite
# troubleshooting-will-be-archived-use-help-instead
k
Is vite supported? or am I doing something wrong?
a
You will need to setup a loader for .node files like we have in some examples. One sec
k
Oh thanks! Yeah that gets it past
npm run start
. Now I'm seeing this whenever I try to load the page that's using my baml function
Here's how I'm using it in my .vue file
Is that right?
v
ah yes. you need to only use BAML functions in your server actions
they can't be called from the client components directly
(not to familiar with vue to anwer the nuances there, so if that doesn't make sense, let me know and I can take a look!)
k
Ohh gotcha that makes sense. I guess it'll be a little harder to use with Vue since it has no concept of server actions. I guess I'll have to try to put it in the backend or something.
Is there any chance Vue will be supported in the future?
v
We’ve been contemplating wasm support which would directly allow us to call models in client side libraries
Curious, would you be ok with that? The issue we keep thinking about is API keys need to live in the backend
k
I would be good with that. I'm just locally running my own LLM with Ollama in a container, and an API key isn't a concern for me since anyone who is running this will have their own LLM spin up
I can see that being a concern though since it might lead people to inadvertently put an API key in the front end
v
Ah got it! Yea I think there will also be a BYOK movement at some point as well.