Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong path for components in Windows #12

Closed
marceloavf opened this issue Jun 12, 2018 · 7 comments
Closed

Wrong path for components in Windows #12

marceloavf opened this issue Jun 12, 2018 · 7 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@marceloavf
Copy link
Contributor

marceloavf commented Jun 12, 2018

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

@itaditya
Copy link

Having same issue 👍

@pedronauck pedronauck added bug Something isn't working help wanted Extra attention is needed labels Jun 13, 2018
@LiuDianshi
Copy link

I got the same error.

@itaditya
Copy link

itaditya commented Jun 13, 2018

@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

@marceloavf
Copy link
Contributor Author

marceloavf commented Jun 13, 2018

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.

@marceloavf
Copy link
Contributor Author

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

@pantharshit00
Copy link

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

@marceloavf
Copy link
Contributor Author

We need a review to merge it in #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants