TypeError: Factory, Object, or Array expected when custom bundling
#2668
Answered
by
josdejong
twiertzema
asked this question in
Q&A
-
|
When attempting to pull in only the parts of the library that I need (following the examples from https://mathjs.org/docs/custom_bundling.html), I receive the following error: This is my importing code: import { create, matrix, multiply } from 'mathjs'
const math = create({ matrix, multiply })I am using version |
Beta Was this translation helpful? Give feedback.
Answered by
josdejong
Jun 14, 2019
Replies: 1 comment
-
|
The |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
josdejong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
createfunction expects factory functions, likematrixDependenciesandmultiplyDependencies. The docs page you're referring to shows an example: https://mathjs.org/docs/custom_bundling.html