Giter VIP home page Giter VIP logo

Comments (9)

Swapnull avatar Swapnull commented on May 5, 2024 8

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

from docz.

overra avatar overra commented on May 5, 2024 1

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?

from docz.

overra avatar overra commented on May 5, 2024 1

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.

from docz.

pedronauck avatar pedronauck commented on May 5, 2024

Which operational system you're using?

from docz.

programmer-yang avatar programmer-yang commented on May 5, 2024

@pedronauck
mac
node: v8.11.1
npm: 5.6.0
yanr:1.6.0

from docz.

pedronauck avatar pedronauck commented on May 5, 2024

Do you can show your project source code?

from docz.

programmer-yang avatar programmer-yang commented on May 5, 2024

@pedronauck here

from docz.

monsieurBoutte avatar monsieurBoutte commented on May 5, 2024

getting the same error.

mac
node: 8.9.3
npm: 5.5.1
yarn: 1.2.1

from docz.

pedronauck avatar pedronauck commented on May 5, 2024

Thanks to help here @Swapnull, maybe this can be a good idea.

from docz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.