question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'mq' of undefined

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
pedronauckcommented, Nov 16, 2018

Fixed on release v0.12.12

2reactions
pedronauckcommented, Nov 16, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'mq' of undefined · Issue #512 - GitHub
When upgrading docz-theme-default to the most recent version ( v0.12.16 ), the error Cannot read property 'mq' of undefined is being thrown.
Read more >
Modernzr mq is undefined? - javascript - Stack Overflow
So getting an error in console :"Uncaught TypeError: Modernizr.on is not a function" $(window).resize(function(){ if ...
Read more >
PH36402: CANNOT READ PROPERTY 'INDEXOF' OF ... - IBM
When expanding the "Module Where Used" section of a module, users may see the following error:
Read more >
cannot read properties of undefined (reading 'providers')
Your issue is that your .find() method is returning undefined , so you can't access properties on product such as .name as it...
Read more >
Cannot read properties of undefined (reading 'map'). Why do I ...
I have a component containing an array, which has certain categories and headers. I wanted to put these into a collapsible menu, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found