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

Can't start docz on Windows when providing files and src to config #1310

Closed
stramel opened this issue Dec 9, 2019 · 13 comments
Closed

Can't start docz on Windows when providing files and src to config #1310

stramel opened this issue Dec 9, 2019 · 13 comments
Labels
bug Something isn't working stale v2 windows Windows specific issue

Comments

@stramel
Copy link
Contributor

stramel commented Dec 9, 2019

Bug Report

Describe the bug
Can't start Docz

ERROR #85901  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "allDoczEntries" on type "Query". Did you mean "allDoczDb"?

File: ..\node_modules\gatsby-theme-docz\lib\createPagesStatefully.js:28:10

To Reproduce

I'm not sure how to reproduce this. It has been running fine on my Mac at work and this is the first time I tried it on my Windows machine.

I'm running this in an NX monorepo with TypeScript.

My config looks like:

// doczrc.js
export default {
  files: '**/*.mdx',
  src: './libs/',
  typescript: true,
  title: 'Coolfire Web'
};

Expected behavior

I would expect this to start on Windows

Environment

  • docz version: 2.1.1
  • OS: Windows 10
  • Node/npm version: Node 12.13.0 / npm 6.12.0

Additional context/Screenshots

Seems similar to #1007

UPDATE:

Removing files and src allowed it to spin up but now my README.md file is back in. This feels very misleading since the documentation says that the README.md is ignored by default.

image

@rakannimer rakannimer changed the title Can't start docz on Windows Can't start docz on Windows when providing files and src to config Dec 11, 2019
@rakannimer rakannimer added bug Something isn't working v2 windows Windows specific issue labels Dec 11, 2019
@stale
Copy link

stale bot commented Feb 9, 2020

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.

@stale stale bot added the stale label Feb 9, 2020
@stramel
Copy link
Contributor Author

stramel commented Feb 9, 2020

I haven't checked but I believe this is still valid. I will update to the latest on Monday

@stale stale bot removed the stale label Feb 9, 2020
@CyberNika
Copy link

CyberNika commented Feb 14, 2020

I get this error with files: "docs/**/*.{mdx}" in doczrc.js too. It takes me a lot of time to figure it out. 😶😶😶

BTW, "docz": "^2.2.0" & macOS

@febugcoder
Copy link

@rakannimer I have same error, Is there anything new?
thanks a lot

@CyberNika

This comment has been minimized.

@limarc
Copy link

limarc commented Mar 3, 2020

@heynext, this is due to the picomatch release version 2.2.1 and fix this issue #49. Just remove braces ({}).

files: "docs/**/*.mdx"

@dsumer
Copy link

dsumer commented Mar 25, 2020

are there any news on this? sadly for me it doesn't even work to configure the files property as @limarc described, which makes this some sort of blocker for me, because developers on windows machines can't work with our docz setup

Update:
Ok I just got it to run on Windows with removing the "src" property, so at least it seems to work now, but nevertheless it's confusing.

@stale
Copy link

stale bot commented May 25, 2020

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.

@stale stale bot added the stale label May 25, 2020
@stramel
Copy link
Contributor Author

stramel commented May 25, 2020

Not stale

@stale stale bot removed the stale label May 25, 2020
@stale
Copy link

stale bot commented Jul 24, 2020

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.

@wumiangithub
Copy link

i am on mac is same problem

@cateams
Copy link

cateams commented Jan 9, 2021

add config files:'./components/**/*.{md,markdown,mdx}' to doczrc.js can fix it for me.

@sarvasvarora
Copy link

I have files: './docs/**/*.{md,markdown,mdx}' in my doczrc.ts file, but the README.md file is being included in the edocs still. Is there any fix?

Moreover, I also have the base config set like base: '/contents/', however, the docs still get exposed on /. Seems like some of the config properties are not working properly (??)

I'm on MacOS and using docz 2.4.0 and gatsby-theme-docz 2.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale v2 windows Windows specific issue
Projects
None yet
Development

No branches or pull requests

9 participants