Atome-FE / llama-node

Believe in AI democratization. llama for nodejs backed by llama-rs, llama.cpp and rwkv.cpp, work locally on your laptop CPU. support llama/alpaca/gpt4all/vicuna/rwkv model.
https://llama-node.vercel.app/
Apache License 2.0
865 stars 63 forks source link

Instructions for use with Electron #120

Open bishwenduk029 opened 1 year ago

bishwenduk029 commented 1 year ago

I was using electron with vite-typescript build system, but on main process of electron keep getting below error:

✔ [plugin-vite] Compiling main process code [0.3s]
[commonjs--resolver] Unexpected character '�' (Note that you need plugins to import files that are not JavaScript)
file: /Users/kundb/projects/oscar/node_modules/@llama-node/llama-cpp/index.js:1:0
1: ����
       ���__TEX__text...
   ^
2: �}
    �
     __stub_helper__TEXT$�
                          P
3: $�
     �__gcc_except_tab__TEXTt�
✔ [plugin-vite] Launching dev servers for renderer process code [0.5s]
✔ [plugin-vite] Compiling main process code [0.3s]

Do I need to use any different vite plugin to load llama-node?