Docz: Can't start docz on Windows when providing files and src to config

Created on 9 Dec 2019  路  11Comments  路  Source: doczjs/docz

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

bug stale v2 windows

Most helpful comment

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

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

All 11 comments

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.

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

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

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

so any other ways to ignore README.md?
emmm, the ignore config does work.

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

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

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.

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.

Not stale

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.

i am on mac is same problem

Was this page helpful?
0 / 5 - 0 ratings

Related issues

koddr picture koddr  路  3Comments

fenbka picture fenbka  路  3Comments

wldcordeiro picture wldcordeiro  路  3Comments

ilyanoskov picture ilyanoskov  路  3Comments

tsnolan23 picture tsnolan23  路  3Comments