Docz: Can't using cra with docz

Created on 14 May 2020  路  5Comments  路  Source: doczjs/docz

Bug Report

Describe the bug
If I install docz on an already configured cra, when trying to run the cra there is a preflight-check error.
The error points to a dependency called webpack-dev-server.
If I remove dependde from node_modules, everything will be back to normal.
There is a conflict with react-scripts.

To Reproduce

yarn create react-app my-app
yarn add docz
yarn dev

Environment

  • docz version: 2.0.0-rc.x
  • OS: OSX 10.13.4
  • Node/npm version: Node 10.16.3/npm 6.11.3

Additional context/Screenshots

Captura de Tela 2020-05-14 a虁s 11 09 13

stale

All 5 comments

I have the save problem

Caught the same issue

Anyone?

put an .env file in your root folder and add SKIP_PREFLIGHT_CHECK=true
this works, I have tested it

To avoid build issues: put docz package in devDependencies.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

w0wka91 picture w0wka91  路  3Comments

regrettably picture regrettably  路  3Comments

tsnolan23 picture tsnolan23  路  3Comments

mariusespejo picture mariusespejo  路  3Comments

nicholasess picture nicholasess  路  3Comments