You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use ava3.13.0 with node14.15.0 and Electron10.1.5 and nodegit0.27.0.. FYI: I also use ava-ts.
So I use ava with spectron to start my app, do some tests and stop it. All of this works - including functions which use nodegit in my app.
In addition to the tests described above I made also a pure non-Electron test file and import nodegit directly.
import*asnodegitfrom'nodegit';
Executing this test now via ava returns this:
node_modules\.pnpm\nodegit@0.27.0\node_modules\nodegit\build\Release\nodegit.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 82. This version of Node.js requires
NODE_MODULE_VERSION 83. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at Module._extensions..node (internal/modules/cjs/loader.js:1122:18)
Where exactly does version 82 come from? I only have nodejs14.15.0 installed, which uses version 83 as expected. Why does ava think the version is a mismatch where it works actually in my app? This is how my package.json looks like:
ava-ts is not an AVA project. I'd suggest you have a look at the built-in TypeScript support and use ava directly.
I believe the "node module version" is to do with native bindings. You also have an --napi-modules flag enabled for Node.js. I don't know exactly what these things do, but the error here is not due to AVA itself.
Hi! novemberborn, thank you for your input! I thought ava-ts ist just a wrapper and related to ava. I removed this dependency in my example repo. It now uses ava and TypeScript only but the issue still remains. I also used --napi-modules, but it still and only fails with ava. I will open a Stackoverflow question then. Thanks again for your help!
Hi,
I use ava
3.13.0
with node14.15.0
and Electron10.1.5
and nodegit0.27.0.
. FYI: I also use ava-ts.So I use ava with spectron to start my app, do some tests and stop it. All of this works - including functions which use nodegit in my app.
In addition to the tests described above I made also a pure non-Electron test file and import nodegit directly.
Executing this test now via ava returns this:
Where exactly does version 82 come from? I only have nodejs
14.15.0
installed, which uses version83
as expected. Why does ava think the version is a mismatch where it works actually in my app? This is how mypackage.json
looks like:I built
nodegit
myself and in theconfig.gypi
file it even refers to:Can anyone explain me if this a bug or where version 82 comes from?
The text was updated successfully, but these errors were encountered: