Which operational system you're using?
@pedronauck
mac
node: v8.11.1
npm: 5.6.0
yanr:1.6.0
Do you can show your project source code?
@pedronauck here
getting the same error.
mac
node: 8.9.3
npm: 5.5.1
yarn: 1.2.1
If you put the front matter of route: '/' it will fix it. eg.
name: Hello World
route: '/'
---
# Hello World
Im an MDX file!
I am not sure if is is supposed to pick up <source>/index.mdx as the front page? May be a cool idea if possible @pedronauck
Thanks to help here @Swapnull, maybe this can be a good idea.
I just discovered the custom .babelrc I had for my existing next.js code base was causing this issue.
I noticed load-cfg checks for ${name}.json (before .babelrc) so I tried creating a babel.json with babel-preset-react-app specifically for docz but I wasn't able to get it running successfully.
Is docz intended to be used alongside the full app?
I just realized I didn't have the babel 7 version of babel-preset-react-app installed. Now it's working fine and next.js uses .babelrc while docz uses babel.json.
Most helpful comment
If you put the front matter of
route: '/'it will fix it. eg.I am not sure if is is supposed to pick up
<source>/index.mdxas the front page? May be a cool idea if possible @pedronauck