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

Cannot read property 'mq' of undefined #452

Closed
maddoxnelson opened this issue Nov 15, 2018 · 7 comments
Closed

Cannot read property 'mq' of undefined #452

maddoxnelson opened this issue Nov 15, 2018 · 7 comments

Comments

@maddoxnelson
Copy link

maddoxnelson commented Nov 15, 2018

Bug Report

On starting a new project with no dependencies other than docz, I am unable to recognize any .mdx files.

To Reproduce

Set up:

  1. mkdir <your-docz-project> && cd <your-docz-project>
  2. npm init
  3. Add "docz:dev": "docz dev" to your scripts
  4. touch any-name.mdx
  5. Put some text in the .mdx file. I used the markup from the Getting Started guide:
name: Hello world
---

# Hello world

Hello, I'm a mdx file!
  1. npm run docz:dev
  2. I wind up with this:
    pic 2018-11-15 at 3 44 05 pm

*Here's a test Repository: https://github.com/maddoxnelson/new-docz

Expected behavior

Docz should return my stuff, as described in theGetting Started page.

Environment

  • OS: OSX 10.13.6 (High Sierra)
  • Node/npm version: Node: 10.12.0, NPM: 6.4.1
@magicspon
Copy link

I'm also seeing this

@idrakimuhamad
Copy link

Seeing this too as I JUST created one an hour ago. Probably v0.12.11 having a problem.

@maddoxnelson
Copy link
Author

maddoxnelson commented Nov 16, 2018

(Not sure if this has anything to do with it) I do not have yarn installed globally -- I can't actually use it for work-related reasons. I tried to spin up docz with npm run bs and I noticed there seems to be a dependency on yarn being installed globally:

This is what I get when I run npm run bs:


lerna notice cli v3.4.3
lerna WARN ECYCLE Dependency cycles detected, you should fix these!
lerna WARN ECYCLE docz-example-basic -> docz -> docz-theme-default -> docz -> docz@^0.12.11
lerna WARN ECYCLE docz-example-flow -> docz -> docz-theme-default -> docz -> docz@^0.12.11
lerna WARN ECYCLE docz-example-styled-components -> docz -> docz-theme-default -> docz -> docz@^0.12.11
lerna WARN ECYCLE docz-example-typescript -> docz -> docz-theme-default -> docz -> docz@^0.12.11
lerna WARN ECYCLE docz-theme-default -> docz -> docz-theme-default
lerna WARN ECYCLE docz -> docz-theme-default -> docz
lerna info bootstrap root only
lerna ERR! yarn install --mutex network:42424 --non-interactive exited ENOENT in 'docz'
lerna ERR! yarn install --mutex network:42424 --non-interactive exited ENOENT in 'docz'

slight update: Having yarn globally doesn't seem to fix the error I originally described, so this is likely unrelated.

@popuguytheparrot
Copy link

same problem

@Jayphen
Copy link

Jayphen commented Nov 16, 2018

Me too

@pedronauck
Copy link
Member

Thanks to report guys, I'm releasing a patch now with this fix 🙏

@pedronauck
Copy link
Member

Fixed on release v0.12.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants