question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build fails with Cannot destructure property `themeConfig` of 'undefined' or 'null'.

See original GitHub issue

Bug Report

Describe the bug

The build fails with Cannot destructure property themeConfig of 'undefined' or 'null'.. It works fine on the local dev server.

To Reproduce

  1. Go to https://utopian-train.surge.sh
  2. You will see the error message

Here’s the repo https://github.com/viewstools/docs/tree/docz.

Expected behavior

That the build works.

Environment

  • OS: N/A
  • Node/npm version: N/A

Additional context/Screenshots screen shot 2018-08-13 at 20 21 39

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
sbaechlercommented, Jan 18, 2019

@pedronauck I am getting the same error in 0.13.7 with the default theme:

screenshot 2019-01-19 00 09 50

This happens as soon as I import a component.

I am using Typescript with create-react-app in a monorepo.

3reactions
tclaincommented, Jan 21, 2019

Same problem as @sbaechler. We love docz, but this prevents our frontend engineers to work 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest with Vue3 ERROR: Cannot destructure property 'config' of ...
On the project, I used Vue3, Vite, Typescript and testing tool Jest. I found only 1 solution to fix this. I have the...
Read more >
Cannot destructure property 'prisma__type' of 'object null' as ...
When we try to execute the prisma raw query this error is coming in aws lambda dev server. But in local docker seems...
Read more >
Theme configuration - Docusaurus
image, string, undefined, The meta image URL for the site. ... You can add items to the navbar via themeConfig.navbar.items .
Read more >
[next.js] Cannot destructure property 'BACKEND_URL ... - GitLab
I have an app that's written in next.js, that has env variables. App works perfectly locally ( yarn dev, yarn build, yarn start, ......
Read more >
TypeError: Cannot destructure property 'interface' of 'require ...
While testing the solidity contract, I'm getting the error `const { interface, bytecode } ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found