Skip to content

Resolvers with Data -- Cannot find module 'loadash' #10

Description

@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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions