Coder Social home page Coder Social logo

Comments (6)

krisztianb avatar krisztianb commented on June 23, 2024

Hi @jerethom. No, I haven't ran into this issue yet. Could you please try to reproduce the issue with an older version of typedoc (eg. 0.17.8)? I haven't used the plugin with 0.18.0 yet and read about some changes concerning types. This is just to figure out first if the problem is related to the plugin or typedoc itself.

from typedoc-umlclass.

jerethom avatar jerethom commented on June 23, 2024

I had the same error up to version 0.17.7, at version 0.17.6 I had this error which must be the same as this one.

Loaded plugin /.../habu/node_modules/typedoc-plugin-mermaid
Loaded plugin /.../habu/node_modules/typedoc-plugin-pages
Error: The plugin /.../habu/node_modules/typedoc-umlclass could not be loaded.

Error: umlClassDiagramBoxBorderWidth must be >= 0
    at Object.convert (/.../node_modules/typedoc/dist/lib/utils/options/declaration.js:37:23)
    at Options.setOptionValueToDefault (/.../node_modules/typedoc/dist/lib/utils/options/options.js:119:64)
    at Options.addDeclaration (/.../node_modules/typedoc/dist/lib/utils/options/options.js:53:14)
    at PluginOptions.addToApplication (/.../node_modules/typedoc-umlclass/dist/plugin_options.js:349:25)
    at Plugin.addOptionsToApplication (/.../node_modules/typedoc-umlclass/dist/plugin.js:121:22)
    at Plugin.initialize (/.../node_modules/typedoc-umlclass/dist/plugin.js:113:14)
    at load (/.../node_modules/typedoc-umlclass/dist/index.js:10:27)
    at PluginHost.load (/.../node_modules/typedoc/dist/lib/utils/plugins.js:28:21)
    at CliApplication.bootstrap (/.../node_modules/typedoc/dist/lib/application.js:50:22)
    at CliApplication.bootstrap (/.../node_modules/typedoc/dist/lib/cli.js:29:30)
/.../node_modules/typedoc/dist/lib/utils/options/declaration.js:37
                throw new Error(getBoundsError(numberOption.name, numberOption.minValue, numberOption.maxValue));
                ^

Error: umlClassDiagramBoxBorderWidth must be >= 0
    at Object.convert (/.../node_modules/typedoc/dist/lib/utils/options/declaration.js:37:23)
    at Options.setOptionValueToDefault (/.../node_modules/typedoc/dist/lib/utils/options/options.js:119:64)
    at Options.reset (/.../node_modules/typedoc/dist/lib/utils/options/options.js:24:18)
    at CliApplication.bootstrap (/.../node_modules/typedoc/dist/lib/application.js:51:22)
    at CliApplication.bootstrap (/.../node_modules/typedoc/dist/lib/cli.js:29:30)
    at Object.<anonymous> (/.../node_modules/typedoc/bin/typedoc:5:5)

from typedoc-umlclass.

krisztianb avatar krisztianb commented on June 23, 2024

Yes, you should not go lower than the peer dependency version, which is: 0.17.7

Ok, then this might be a bug in the plugin. Can I ask you to use the option --umlClassDiagramVerboseOutput true and try again? This should output some debug info and might help us find out which type is causing the problem. We might then look at that type to see if there is anything special about it.

from typedoc-umlclass.

krisztianb avatar krisztianb commented on June 23, 2024

Looking at the code this could be caused by recursive type definitions. Could you provide any update please? If not I will have to somehow investigate this myself.

from typedoc-umlclass.

krisztianb avatar krisztianb commented on June 23, 2024

Unfortunately I can't reproduce this issue. @jerethom could you provide some feedback to debug this issue further? Are you by any change using the typedoc flag --ignoreCompilerErrors?

from typedoc-umlclass.

krisztianb avatar krisztianb commented on June 23, 2024

Since I can't reproduce this issue and ignoreCompilerErrors has been removed from the latest TypeDoc version I'm closing this as "cannot reproduce".

If someone can reproduce this issue feel free to post here or open a new one. Thanks.

from typedoc-umlclass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.