pedronauck/docz

Create react app with absolute imports (`NODE_PATH`) #396

KATT posted onGitHub

Question

Description

Reading #140 I get the impression that NODE_PATH in .env should be supported.

I've gotten a create-react-app until the point of supporting absolute paths. Is there any way to tell docz to use src as NODE_PATH?

Steps to reproduce

I've created an example in https://github.com/KATT/create-react-app-docz-test

git clone git@github.com:KATT/create-react-app-docz-test.git
cd create-react-app-docz-test
yarn docz:dev

Error

This dependency was not found:

* components/Logo in ./src/components/App/index.js

Note

The example project works if we revert eaba11.


Fund this Issue

$40.00
Rewarded

Rewarded pull request

Recent activities

yaodingyd was rewarded by pedronauck for pedronauck/docz# 396
over 6 years ago
yaodingyd submitted an output to  pedronauck/ docz# 396
over 6 years ago