Mathjs: Missing "subset" dependency when using "mathjs/number" entry point

Created on 28 Sep 2020  路  2Comments  路  Source: josdejong/mathjs

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

bug

All 2 comments

Thanks for reporting Sylvain.

I'll look into why this is not working, have to figure out why this dependency is not part of the AccessorNode dependencies right now.

This is fixed now in v8.0.1

Was this page helpful?
0 / 5 - 0 ratings