Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Instructions for use with Electron #120

@bishwenduk029

Description

@bishwenduk029

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions