Docz: Webpack dev server Validation error

Created on 17 May 2019  路  5Comments  路  Source: doczjs/docz

Bug Report

Describe the bug

This is my package.json file

{
  "name": "dummy",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "start": "npm run docz:dev",
    "docz:dev": "docz dev",
    "docz:build": "docz build"
  },
  "author": "",
  "license": "MIT",
  "devDependencies": {
    "@babel/core": "^7.2.2",
    "@babel/preset-env": "^7.2.3",
    "@babel/preset-react": "^7.0.0",
    "babel-plugin-module-resolver": "^3.2.0",
    "docz": "^1.2.0",
    "docz-theme-default": "^1.2.0"
  }
}

This is .doczrc.js

export default {
  title: 'Dummy',
  description: 'Foo bar',
  source: './src-docs',
  debug: false,
  theme: 'docz-theme-default',
  themeConfig: {
    mode: 'dark',
    colors: {
      primary: '#ee212e',
    },
  },
  codeSandbox: false,
};

& all in my /src-doc files are .mdx files.

When I run

npm run docz dev 

or with yarn

yarn docz dev

I get the following error.

Screenshot 2019-05-17 at 17 48 17

I am not sure what I can do here, to resolve this 馃槥


To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

To run docz successfully.

Environment

  • OS: [e.g. OSX 10.14.5]
  • Node/npm version: [e.g. Node v11.10.1/npm v6.7.0]
  • yarn v1.15.2

Most helpful comment

this seems to be a breaking change from webpack. fortunately we already have a PR! https://github.com/pedronauck/docz/pull/878

All 5 comments

Please do let me know if I can share any other kind of log to help in tracing the issue. @sw-yx 馃槶 馃槥

this seems to be a breaking change from webpack. fortunately we already have a PR! https://github.com/pedronauck/docz/pull/878

@pedronauck i merged the bugfix if you can release

@sw-yx Any rought ETA as to when the next release will happen? 馃槄 馃槄

i dont control the releases, sorry

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PlayMa256 picture PlayMa256  路  24Comments

davidtaboas picture davidtaboas  路  35Comments

maxguzenski picture maxguzenski  路  24Comments

Viktor19931 picture Viktor19931  路  22Comments

ivan-dalmet picture ivan-dalmet  路  83Comments