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

MDX not works #860

Closed
talisonfc opened this issue May 8, 2019 · 3 comments
Closed

MDX not works #860

talisonfc opened this issue May 8, 2019 · 3 comments

Comments

@talisonfc
Copy link

Bug Report

I tried to use docz in a started project with react 16.8.6 but does not work. After install docz using npm isntall docz docz-theme-default --dev, set scripts docz:dev and docz:build on package.json and run using npm run docz:dev, I get the follow error:

./node_modules/docz/dist/index.esm.js 23:38
Module parse failed: Unexpected token (23:38)
You may need an appropriate loader to handle this file type.
| import { MDXProvider } from '@mdx-js/react';
| 
> const BasePlayground = loadable(() => import('./Playground.esm.js'));
| const Playground = props => typeof window !== 'undefined' ? createElement(Suspense, {
|   fallback: null
@AryanJ-NYC
Copy link
Contributor

Please see #704.

@talisonfc
Copy link
Author

Thank you

@Glazy
Copy link
Contributor

Glazy commented May 15, 2019

Closing this issue for now as it seems you have sorted your problem @talisonfc 👍

@Glazy Glazy closed this as completed May 15, 2019
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

3 participants