Docz: can not run

Created on 15 Nov 2018  路  9Comments  路  Source: doczjs/docz

This dependency was not found:

  • /Users/mac/Desktop/study/mdx/mdx/react-framework/.docz/app/index.jsx in multi ./node_modules/@babel/polyfill/lib/index.js ./.docz/app/index.jsx, mult
    i webpack-hot-client/client?6731d2ca-ad60-4d8d-9f75-d5d276c34a2f ./node_modules/@babel/polyfill/lib/index.js ./.docz/app/index.jsx

To install it, you can run: npm install --save /Users/mac/Desktop/study/mdx/mdx/react-framework/.docz/app/index.jsx

All 9 comments

it throw an error when i delete .docz

I would recommend:

rm -rf .docz node_modules

Then npm install or yarn install and retry.

For these types of issues, please always include node version, npm/yarn version, and the verbose output of running docz.

I forgot it锛宻orry.

[email protected]
[email protected]
[email protected]

It works before I use indexHtml: './src/docz.html' ,but after 锛宼he page is blank , so i delete .docz and use yarn docz dev , npm throw an error

 ERROR  Failed to compile with 2 errors                                                                                                        
This dependency was not found:

* /Users/mac/Desktop/study/mdx/mdx/react-framework/.docz/app/index.jsx in multi ./node_modules/@babel/polyfill/lib/index.js ./.docz/app/index.jsx, mult
i webpack-hot-client/client?ef3d54ff-4c71-46b5-be0d-7e0806c2b5cc ./node_modules/@babel/polyfill/lib/index.js ./.docz/app/index.jsx

To install it, you can run: npm install --save /Users/mac/Desktop/study/mdx/mdx/react-framework/.docz/app/index.jsx

the page is blank ,because DOM #root has nothing.

<body>
      <div id="root"></div>
       <script src="/static/js/runtime~app.js">
       </script><script src="/static/js/vendors.js">
       </script><script src="/static/js/app.js"></script>
</body>

Bug Report

Describe the bug
After updating react & react-dom from 16.6.1 to 16.6.3 docz stopped building - either in dev or production build.

To Reproduce

  1. Clone https://github.com/krzysztofzuraw/docz-bug
  2. Run npm install
  3. Run npm run docz:dev
 ERROR  Failed to compile with 2 errors                                                                                           11:21:18 AM

This dependency was not found:

* /Users/kzuraw/Development/github/private/docz-bug/.docz/app/index.jsx in multi ./node_modules/@babel/polyfill/lib/index.js ./.docz/app/inde
x.jsx, multi webpack-hot-client/client?eaf55279-3fa6-4ab7-bf66-840a2a3ff7c1 ./node_modules/@babel/polyfill/lib/index.js ./.docz/app/index.jsx

To install it, you can run: npm install --save /Users/kzuraw/Development/github/private/docz-bug/.docz/app/index.jsx

Expected behavior
Docz runs & builds correctly.

Environment

  • OS: OSX 10.14.1
  • Node/npm version: 10.10.0 / 6.4.1

Hey guys, try to delete your node_modules and install it again. Then, re run the docz, can be happening because the last release 馃檹

@pedronauck I've tried (I also removed .docz) folder - the problem still occurs

@krzysztofzuraw which version do you're using?

I've just updated to the newest - 0.12.12 and it fixed the issue - thank you 馃憦

Was this page helpful?
0 / 5 - 0 ratings

Related issues

koddr picture koddr  路  3Comments

danburzo picture danburzo  路  3Comments

wldcordeiro picture wldcordeiro  路  3Comments

bichotll picture bichotll  路  3Comments

brunolemos picture brunolemos  路  3Comments