Open maria-le opened 5 years ago
Please see this question on StackOverflow.
I'm getting the following error on installation.
./node_modules/farmhash/index.js Module not found: Can't resolve './build/Release/farmhash' in '/path/to/my_project/node_modules/farmhash'
./node_modules/farmhash/index.js
Module not found: Can't resolve './build/Release/farmhash' in '/path/to/my_project/node_modules/farmhash'
Steps to recreate.
At the command line, I did
yarn add farmhash
Then imported using
import farmhash from 'farmhash';
Then tried to use with
const hash = farmhash.hash32('test');
I checked my node_modules directory to verify it installed to the correct location: node_node_modules/farmhash/index.js
What am I doing wrong and how can I correct this error?
Please see this question on StackOverflow.
I'm getting the following error on installation.
Steps to recreate.
At the command line, I did
Then imported using
Then tried to use with
I checked my node_modules directory to verify it installed to the correct location: node_node_modules/farmhash/index.js
What am I doing wrong and how can I correct this error?