Skip to content

Error: Cannot find module 'lodash' #346

Closed

Description

@mcianc

The new import { isObject } from 'lodash' in the rule-result.js file generate the following exception for me.

image

using the lodash.isobjectlike package you should use
import { isObject } from 'lodash.isobjectlike'

I used to have "json-rules-engine": "^6.1.2"' in my dependencies, and under the hood it was was automatically updated to the last version after your last 6.4.0 release.
Sorted forcing the package to the initial version "json-rules-engine": "6.1.2"'

If I'm not in wrong the lodash package is not used in any other source files, most problalby it can be entirely removed from devDependencies, it will not installed when used package will be installed using npm ci

My project details:

  • monorepo using lerna
  • server app using nestjs
  • json-rules-engine imported in a package imported from server as a local dependency

Activity

  1. chris-pardy commented on Aug 26, 2023

    @chris-pardy
    Collaborator

    @mcianc thanks for the bug report I've pushed a new patch version that should resolve this issue for you.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions