Whn running tests I get the following error:
This relative module was not found:
* ./build/Release/scrypt in ./node_modules/scrypt/index.js
[=========================] 100% (completed)
WEBPACK Failed to compile with 1 error(s)
Error in ./node_modules/scrypt/index.js
Module not found: './build/Release/scrypt' in '.../node_modules/scrypt'
ERROR mochapack exited with code 1.
Scrypt is installed and built with node-gyp.
Using Node version 10.16.3
my deps (oddly enough when running tests I was required to install electron
):
"dependencies": {
"@openzeppelin/cli": "^2.8.2",
"@openzeppelin/contracts": "^3.0.1",
"@openzeppelin/gsn-helpers": "^0.2.3",
"@openzeppelin/gsn-provider": "^0.1.10",
"babel": "^6.23.0",
"core-js": "^3.6.4",
"electron": "^9.0.5",
"scrypt": "^6.0.3",
"vue": "^2.6.11",
"vue-router": "^3.3.4",
"vuex": "^3.4.0",
"web3": "1.2.7"
},
"devDependencies": {
"@openzeppelin/test-environment": "^0.1.4",
"@openzeppelin/test-helpers": "^0.5.6",
"@vue/cli-plugin-babel": "^4.3.0",
"@vue/cli-plugin-eslint": "^4.3.0",
"@vue/cli-plugin-unit-mocha": "^4.3.1",
"@vue/cli-service": "^4.3.0",
"@vue/test-utils": "1.0.0-beta.31",
"babel-eslint": "^10.1.0",
"chai": "^4.1.2",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"mocha": "^7.1.2",
"vue-template-compiler": "^2.6.11"
},