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

TypeError: markdown is not a function #84

Open
palmaguer opened this issue Sep 23, 2023 · 2 comments
Open

TypeError: markdown is not a function #84

palmaguer opened this issue Sep 23, 2023 · 2 comments

Comments

@palmaguer
Copy link

palmaguer commented Sep 23, 2023

System Summary

   System Version:      22G91
   Hardware Model:      MacBookPro18,3

Error Message

/Users/generic/dev/plsql-md-doc/node_modules/dox/lib/dox.js:249
    description.full = markdown(description.full);
                       ^

TypeError: markdown is not a function
    at exports.parseComment (/Users/palmaguer/dev/plsql-md-doc/node_modules/dox/lib/dox.js:249:24)
    at exports.parseComments (/Users/palmaguer/dev/plsql-md-doc/node_modules/dox/lib/dox.js:112:25)
    at pmd.processFile (/Users/palmaguer/dev/plsql-md-doc/lib/pmd.js:93:22)
    at pmd.readFolder (/Users/palmaguer/dev/plsql-md-doc/lib/pmd.js:382:22)
    at /Users/palmaguer/dev/plsql-md-doc/lib/pmd.js:457:9
    at Array.forEach (<anonymous>)
    at pmd.generateData (/Users/palmaguer/dev/plsql-md-doc/lib/pmd.js:456:18)
    at Object.<anonymous> (/Users/palmaguer/dev/plsql-md-doc/app.js:87:16)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)

Node.js v18.17.1
@martindsouza
Copy link
Member

@pablodaniel03 thanks for posting the issue. I'm not supporting this project anymore so unfortunately you'll need to debug on your own.

That said just reading the issue dox.js is from https://github.com/tj/dox Perhaps you can see if there's a newer version or a different library that's compatible.

@jifbrodeur
Copy link

Hi @pablodaniel03 @martindsouza, the solution is rather simple, before running npm install change the package.json to resolve the dependencies issue, and changing the line for dox with the following: "dox": "^1.0.0",
Martin if I fork the repo and do a PR would you merge the change?

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