Open malhar12 opened 2 years ago
I'm also experiencing the following error while trying to run docz dev
:
.../.docz/.cache/develop-static-entry.js: @babel/preset-env: The plugins/built-ins 'es.error.to-string,
es.number.to-exponential' passed to the 'exclude' option are not
valid. Please check data/[plugin-features|built-in-features].js in
babel-preset-env (While processing: ".../node_modules/gatsby/node_modules/@babel/preset-env/lib/index.js")
File: .cache/develop-static-entry.js
not finished Building development bundle - 4.520s
This after installing docz
onto a large React/Typescript project.
I've got no clue how to resolve this. Some insight into what might be causing this error would be really helpful.
Hey guys, as far as I got the problem here, it's not related to docz itself as you have your own gatsby setup upfront. The problem is coming from babel-preset-gatsby
where you might be using an unsupported version or in the wrong way.
Try to create a reproducible environment, so we can take a further look, but for both of you, the clue is around the babel-preset-gatsby
and your gatsby configuration.
Environment for reproduction:
Command that I'm executing --> yarn docz build --typescript
Not sure, as to what the error is. It says that the plugins/built-ins that are passed to the exclude option are not valid. Tried to override it by passing empty array to it inside
gatsby-node.js
:A help here would be much appreciated, as all my builds are failing because it is failing to deploy the documentation.