Docz: Wrong path for components in Windows

Created on 12 Jun 2018  路  7Comments  路  Source: doczjs/docz

Bug Report

Describe the bug

When try to run dev project it return an error about wrong imports from components without the slash bar, probably something with windows path.

To Reproduce

  1. Run npm install
  2. Run npm dev
 ERROR  Failed to compile with 3 errors                                                                                                                                  09:20:48

These dependencies were not found:

* srccomponentsAlert.mdx in ./.docz/app/imports.js
* srccomponentsButton.mdx in ./.docz/app/imports.js
* srcindex.mdx in ./.docz/app/imports.js

To install them, you can run: npm install --save srccomponentsAlert.mdx srccomponentsButton.mdx srcindex.mdx

Enviroment

  • OS: Windows 10
  • Node/npm version: v10.4.0 / 6.0.0

Additional context/Screenshots
image

bug help wanted

All 7 comments

Having same issue :+1:

I got the same error.

@pedronauck I see you have labelled the issue as help wanted. I'd love to help. Can you suggest some places I should check out to track the cause of the bug. This will give me a good headstart

I tried to check some places but don't find an approachable way to debug docz-core.

It's comming with src\components\Alert.mdx at the end, and prettier is formating it removing the one slash.

@itaditya if you could please test the pull request branch in your machine

Ya, will be using bash for windows for now meanwhile that pull request merges into master

We need a review to merge it in #31

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brunolemos picture brunolemos  路  3Comments

w0wka91 picture w0wka91  路  3Comments

merelinguist picture merelinguist  路  3Comments

kachkaev picture kachkaev  路  3Comments

ssylvia picture ssylvia  路  3Comments