Skip to content

Error: Cannot find module 'lodash' #346

Closed
@mcianc

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

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