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.

Not so 'Zero Configuration'

See original GitHub issue

Hey, I’m having a lot of problems here with docz. Just to clarify:

  • yarn --version 1.3.2
  • node --version v9.11.1 (but tried with v10.0.0 too)
  • MacOS

My project use React + Webpack and it is a simple project with two components (one is the main component). I ran yarn add docz --dev and installed the dependencies. Then I created a file on the project like the documentation says anywhere in the project and when I tried to run the yarn docz dev, this is the output:

 ERROR  Failed to compile with 2 errors                                                                                                                                                                                               20:23:09

These dependencies were not found:

* docz-theme-default in ./.docz/app/root.jsx
* webpack-hot-client/client?e355a93e-1b0c-4aa5-a751-e8c3c0b5968b in multi webpack-hot-client/client?e355a93e-1b0c-4aa5-a751-e8c3c0b5968b ./node_modules/docz-core/node_modules/babel-polyfill/lib/index.js ./.docz/app/index.jsx

To install them, you can run: npm install --save docz-theme-default webpack-hot-client/client?e355a93e-1b0c-4aa5-a751-e8c3c0b5968b

This seems the first problem: Not install all the dependencies when the docz is installed. I suggest installing the default theme with docz and correct the missing dependency if it’s possible.

Then, I’ve installed the dependencies and all seems ok but when I opened my browser even with the .mdx simple file from the documentation I don’t see anything, just a blank page. This is the file I wrote:

---
name: Hello world
---

# Hello world

I'm a markdown document that can have components!

I’ve placed the file on all the directories on my project and I still see a blank page. Then I thought: ‘Oh, maybe I need to place my component on the file’ and imported the Component. Then I got another error with problems when my component import css from my style.css file.

Any help?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Pabloicazacommented, Sep 4, 2018

@caian-gums that solved the problem!! Thanks for the time!

1reaction
caiangumscommented, Sep 4, 2018

@ghostCoder no, I could not make the project works on my repo and I’m not with so much personal time to manage this. As Babel 7 was released, I encourage you to increase your Babel version to 7 like @pedronauck said.

@Pabloicaza try to delete your node_modules/ directory and install again. Your Babel version probably is not the new one(you didn’t run npm update).

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is zero configuration networking? - IBM
Zero configuration networking allows you to automatically create a network of devices without having to manually configure a DHCP server, DNS services, ...
Read more >
Zero-configuration networking - Wikipedia
Zero -configuration networking (zeroconf) is a set of technologies that automatically creates a usable computer network based on the Internet Protocol Suite ...
Read more >
Zero configuration - DataTables example
DataTables has most features enabled by default, so all you need to do to use it with your own tables is to call...
Read more >
Zero Configuration Networking (Zeroconf)
The long-term goal of Zero Configuration Networking is to enable the creation of entirely new kinds of products that make use of IP...
Read more >
Zero Config Debug not working, but everything connects...?
So, I know it's connecting, I can see the log showing communication back and forth, I can see the file in the log...
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