Docz: Page Not Found

Created on 13 Jun 2018  路  9Comments  路  Source: doczjs/docz

I follow the steps on the website here
my directory structure:

index.mdx
package.json
yarn.lock

But my page has no content

look:
image

Most helpful comment

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

All 9 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ronghang picture ronghang  路  33Comments

godmar picture godmar  路  24Comments

xingBri picture xingBri  路  29Comments

PlayMa256 picture PlayMa256  路  24Comments

colshacol picture colshacol  路  23Comments