Resolvers with Data -- Cannot find module 'loadash'

#10 · open · 0 comments

View on GitHub ↗

luckyvs1

Just a FYI, users may see an error such as this ``` Error: Cannot find module 'loadash' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15) at Function.Module._load (internal/modules/cjs/loader.js:520:25) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18) ``` To resolve this issue in the schema.js file replace `const _ = require('loadash');` with `const _ = require('lodash');` and run the command `npm install lodash` I ran into the above error while working through the tutorials, so hopefully this solution can help someone else. Reference: https://www.npmjs.com/package/loadash

Comments