Docz: TypeError: `mergeWith` is not a function

Created on 12 May 2020  路  4Comments  路  Source: doczjs/docz

When running docz build this error is thrown:

ERROR #10123  CONFIG

We encountered an error while trying to load your site's gatsby-config. Please fix the error and try again.

  TypeError: mergeWith is not a function

  - gatsby-config.js:122 Object.<anonymous>
    /Users/pbrouwer/test/.docz/gatsby-config.js:122:15

The first line of the generated config:

const { mergeWith } = require('docz-utils')

But it seems that mergeWith is not exported in docz-utils:

image

Most helpful comment

you need to install docz-utils@^2.3.0 separately and it will work ... (latest version for now is 2.3.0)

All 4 comments

I have the latest version of lodash installed, if I remove that the docz will build.

Any ideas?

you need to install docz-utils@^2.3.0 separately and it will work ... (latest version for now is 2.3.0)

I'm also getting this error. Why would I need to install the utils separately when they are already installed with the main package?

That definitely solved it, thanks.

Is that solved by a clean install (because I just upgraded deps from v1 to v2)?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

albinekb picture albinekb  路  3Comments

ssylvia picture ssylvia  路  3Comments

brunolemos picture brunolemos  路  3Comments

bichotll picture bichotll  路  3Comments

nicholasess picture nicholasess  路  3Comments