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

docz dev fails #651

Closed
pkrawc opened this issue Feb 19, 2019 · 4 comments
Closed

docz dev fails #651

pkrawc opened this issue Feb 19, 2019 · 4 comments

Comments

@pkrawc
Copy link

pkrawc commented Feb 19, 2019

Bug Report

Docz won't build in development mode

To Reproduce

  1. npm init -y && npm i -D docz docz-theme-default
  2. docz dev
Failed to compile.

./node_modules/docz/dist/index.m.js 473:30
Module parse failed: Unexpected token (473:30)
You may need an appropriate loader to handle this file type.
| async function loadFromImports(path) {
|     // tslint:disable-next-line
>     const { imports } = await import('~imports');
|     const { default: Component$$1, getInitialData } = await imports[path]();
|     const ExportedComponent = props => (createElement(AsyncComponent, Object.assign({}, props, { as: Component$$1 || 'div', getInitialData: getInitialData })));

I would expect the tool to not fail a build with the basic, out-of-the-box setup.

Environment

MacOS 10.14.3 Mojave
Node 11.7.0 | NPM 6.7.0

@KingScooty
Copy link

Having exactly the same issue :/

@swyxio
Copy link
Contributor

swyxio commented Feb 20, 2019

this is a known issue: #596 (comment) (and if you're using create react app, #536 (comment))

unfortunately i cant fix it but its been known and a pinned issue for a while

@pkrawc
Copy link
Author

pkrawc commented Feb 20, 2019

Thanks. I'll close this in favor of keeping conversation on that thread.

@pkrawc pkrawc closed this as completed Feb 20, 2019
@swyxio
Copy link
Contributor

swyxio commented Feb 20, 2019

cheers. sorry i dont have a better answer

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