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

es67 class with properties (split of undefined in DocBuilder:903) #544

Open
5 tasks
cybermerlin opened this issue May 9, 2019 · 0 comments
Open
5 tasks

Comments

@cybermerlin
Copy link

Make sure these boxes are checked before submitting your issue - thank you!
(If your issue is neither a both bug nor a request, please write in a free style)

Short summary of your issue

// write into here

Input data for reproducing

Configuration

{
  "source": "./src",
  "destination": "./docs",
  "includes": [
    "\\.js$"
  ],
  "excludes": [
    "^\\.",
    "\\.config\\.js$",
    "node_modules",
    "\\.git"
  ],
  "plugins": [
    {
      "name": "esdoc-standard-plugin",
      "option": {
        "brand": {
          "logo": "./logo.png",
          "title": "vcore",
          "description": "js core for client developers",
          "repository": "",
          "site": "",
          "author": "js-god",
          "image": ""
        },
        "coverage": {
          "enable": true
        },
        "undocumentIdentifier": {
          "enable": true
        },
        "test": {
          "source": "./tests/",
          "interfaces": [
            "describe",
            "it",
            "context",
            "suite",
            "test"
          ],
          "includes": [
            "\\.js$"
          ],
          "excludes": [
            "\\.config\\.js$",
            "\\.eslintrc\\.js$"
          ]
        }
      }
    },
    {
      "name": "esdoc-ecmascript-proposal-plugin",
      "option": {
        "classProperties": true,
        "objectRestSpread": true,
        "doExpressions": true,
        "functionBind": true,
        "functionSent": true,
        "asyncGenerators": true,
        "decorators": true,
        "exportExtensions": true,
        "dynamicImport": true
      }
    }
  ]
}

Codes

/**
 * Have base methods for this object for save to server, or add, or delete, something else.
 *
 * U need set API on constructor run (if not set on class).
 *
 * Usually on defining the new class just need to define columns
 *  through decorator {@link core.data.Column `@Column`}.
 *
 * #destructor n #destroy - help to u clearly destroy this object
 *
 * @class core.data.Model
 */
class Model {
  /**
   * All ur fields (columns) which data u wanna send to the server should be defined in this property.
   * Will be did it through `@Column` or will be manually added fields into this property, it's not important.
   * But be careful on define fields with both methods.
   * @property {core.data.ColumnSchema[]} [_fields=[]]
   */
  //_fields;

  /**
   * @todo observe this class n set this._dirty = true on something change.
   * @type {boolean}
   * @private
   */
  _dirty = false;
  _mapping = [];
  _query = '';
  /**
   * Last fetching Promise
   * @property {Promise<*>} _lastFetch
   * @private
   */
  _lastFetch;
}


export default Model;

Output data

Log


TypeError: Cannot read property 'split' of undefined
    at ice.loop (core\node_modules\esdoc-publish-html-plugin\out\src\Builder\DocBuilder.js:903:52)
    at IceCap.loop (core\node_modules\ice-cap\out\src\IceCap.js:261:9)
    at ClassDocBuilder._buildProperties (core\node_modules\esdoc-publish-html-plugin\out\src\Builder\DocBuilder.js:901:9)
    at ice.loop (core\node_modules\esdoc-publish-html-plugin\out\src\Builder\DocBuilder.js:456:37)
    at IceCap.loop (core\node_modules\ice-cap\out\src\IceCap.js:261:9)
    at ClassDocBuilder._buildDetailDocs (core\node_modules\esdoc-publish-html-plugin\out\src\Builder\DocBuilder.js:409:9)
    at ClassDocBuilder._buildDetailHTML (core\node_modules\esdoc-publish-html-plugin\out\src\Builder\DocBuilder.js:388:27)
    at ClassDocBuilder._buildClassDoc (core\node_modules\esdoc-publish-html-plugin\out\src\Builder\ClassDocBuilder.js:123:36)
    at ClassDocBuilder.exec (core\node_modules\esdoc-publish-html-plugin\out\src\Builder\ClassDocBuilder.js:31:32)
    at Plugin._exec (core\node_modules\esdoc-publish-html-plugin\out\src\Plugin.js:93:63)


Screen shot of documentation

// attach a image into here

Exception output (if possible)

Log

// write into here

Screen shot of documentation

// attach a image into here

Your environment

  • OS type and version: win.10
  • Node.js version: 10.15
  • ESDoc version: 1.1
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

1 participant