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

Error while running apex docs #201

Closed
RaviVaranasi opened this issue Oct 23, 2024 · 4 comments · Fixed by #202
Closed

Error while running apex docs #201

RaviVaranasi opened this issue Oct 23, 2024 · 4 comments · Fixed by #202
Assignees

Comments

@RaviVaranasi
Copy link
Contributor

I got the latest version, 3.4.0, and ran the following command.

apexdocs markdown -s force-app

/Users/ravi.varanasi/salesforce-project/node_modules/@cparra/apexdocs/dist/logger-BJXlA0YD.js:1743
  return text.toLowerCase().replace(/[^a-z0-9\s-]/g, "").trim().replace(/\s+/g, "-").replace(/-+/g, "-");
              ^

TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at slugify (/Users/ravi.varanasi/salesforce-project/node_modules/@cparra/apexdocs/dist/logger-BJXlA0YD.js:1743:15)
    at parsedFileToDocPageReference (/Users/ravi.varanasi/salesforce-project/node_modules/@cparra/apexdocs/dist/logger-BJXlA0YD.js:1734:19)
    at /Users/ravi.varanasi/salesforce-project/node_modules/@cparra/apexdocs/dist/logger-BJXlA0YD.js:1729:35
    at Array.reduce (<anonymous>)
    at parsedFilesToReferenceGuide (/Users/ravi.varanasi/salesforce-project/node_modules/@cparra/apexdocs/dist/logger-BJXlA0YD.js:1728:22)
    at /Users/ravi.varanasi/salesforce-project/node_modules/@cparra/apexdocs/dist/logger-BJXlA0YD.js:51:27
    at /Users/ravi.varanasi/salesforce-project/node_modules/@cparra/apexdocs/dist/logger-BJXlA0YD.js:2144:9
    at /Users/ravi.varanasi/salesforce-project/node_modules/fp-ts/lib/Chain.js:15:103
    at /Users/ravi.varanasi/salesforce-project/node_modules/fp-ts/lib/EitherT.js:99:97
    at /Users/ravi.varanasi/salesforce-project/node_modules/fp-ts/lib/Task.js:134:41

Node.js v18.19.0
@cesarParra
Copy link
Owner

Thanks @RaviVaranasi .

Seems like I have a typo in the new config param. I'll fix this shortly. As a workaround you can try adding the "customObjectsGroupName" (notice the extra "s" after Object) key to your config file

@cesarParra cesarParra self-assigned this Oct 23, 2024
@RaviVaranasi
Copy link
Contributor Author

bjects

Is this in the metadata xml file or is it a apex docs config file?

@RaviVaranasi
Copy link
Contributor Author

Never mind. Figured it out

@cesarParra
Copy link
Owner

New version (3.4.1) available

@cesarParra cesarParra linked a pull request Oct 23, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants