react-styleguidist: Build fails with JSDocs tags in Component docs. (webpack 2, styleguide 5 beta)

Environment:

  • Webpack version: 2.2.0
  • react-styleguidist: 5.0.0-beta.10

The build breaks because of JSDocs tags. We have updated to Webpack 2 and after checking this issue: https://github.com/styleguidist/react-styleguidist/issues/292 I have decided to go with the v5 beta.

I consistently manage to reproduce the build error with @see and @module JSDocs tags. I haven’t tried other tags. We had an @see that I have temporarily removed from our code to get it to work. I don’t know if it’s style guide V5 specific.

Example:

Pagination.js

/**
 * Some random doc comments
 *
 * @see some-url
 */
export default function Pagination (props) {
  return <div/>
}

Error thrown:

Failed to compile.

Error in ./src/framework/components/Pagination/Pagination.js
Module build failed: TypeError: obj.hasOwnProperty is not a function
    at Array.map (native)
 @ ./~/react-styleguidist/loaders/styleguide-loader.js!./~/react-styleguidist/lib/index.js 128:29-265
 @ ./~/react-styleguidist/lib/index.js
 @ multi ./~/react-dev-utils/webpackHotDevClient.js ./src/framework/docs/index.js ./~/react-styleguidist/lib/index

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (16 by maintainers)

Most upvoted comments

@AoDev Thanks! I’m closing this issue and will ping you when I’m ready to start on adding support for @see.