Skip to content

Missing "subset" dependency when using "mathjs/number" entry point #1979

@sylvaingi

Description

@sylvaingi

When trying to use the mathjs/number entry point for a lighter final bundle size, I encountered the following error when trying to use the evaluate function:

Cannot create function "AccessorNode", some dependencies are missing: "subset".

Adding subsetDependencies solves the issue.

Reproduction:
https://codesandbox.io/s/pensive-lehmann-crt4q?file=/src/index.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions