reorproject / reor

Private & local AI personal knowledge management app.
https://reorproject.org
GNU Affero General Public License v3.0
6.85k stars 412 forks source link

Cannot setup reor locally #360

Open Manas-Kenge opened 3 weeks ago

Manas-Kenge commented 3 weeks ago

Describe the bug While setting up reor locally I get the following error. After running npm install when I run npm run dev I see this.

X [ERROR] Could not resolve "evaluatex/dist/evaluatex"

    node_modules/@aarkue/tiptap-math-extension/dist/index.js:3:22:
      3 │ import evaluatex from 'evaluatex/dist/evaluatex';
        ╵                       ~~~~~~~~~~~~~~~~~~~~~~~~~~

  You can mark the path "evaluatex/dist/evaluatex" as external to exclude it from the bundle, which
  will remove this error.

App threw an error during load
Error: vectordb: failed to load native library.
  You may need to run `npm install @lancedb/vectordb-win32-x64-msvc`.

  If that does not work, please file a bug report at https://github.com/lancedb/lancedb/issues

  Source error: Error: Cannot find module 'C:\Users\manas\Open source\reor\node_modules\vectordb\node_modules\@lancedb\vectordb-win32-x64-msvc\index.node'. Please verify that the package.json has a valid "main" entry
    at Object.<anonymous> (C:\Users\manas\Open source\reor\node_modules\vectordb\native.js:26:11)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at Module._load (node:internal/modules/cjs/loader:967:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Module.require (node:internal/modules/cjs/loader:1150:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (C:\Users\manas\Open source\reor\node_modules\vectordb\dist\query.js:19:25)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)

I have followed the contributing guide as well as lancedb-error guide.

Desktop (please complete the following information):

joseplayero commented 3 weeks ago

did you see an error with doing any of/both of these two things:

This is happening because LanceDB requires some C++ libraries to be installed on your system. To fix, please download and run the following: MSVS C++ redist.

Alternatively, you can install the same libraries by installing the Visual Studio Build Tools. (This is a slightly larger install the MSVS).

and are you by any chance on an ARM machine?

Manas-Kenge commented 3 weeks ago

Hey, thanks for your concern. I have downloaded MSVS C++ redist but it still didn't work and no I have x64 machine.