Skip to content

Conversation

@josh-padnick
Copy link
Contributor

I wanted to run Docusaurus locally so I could more easily propose updates to the content, but I kept getting dozens of instances of the following error:

Error: error:0308010C:digital envelope routines::unsupported
    at String.replace (<anonymous>). This is apparently an issue due to using vulnerable dependencies that rely on outdated TLS standards.

Based on this Stack Overflow response, I ran yarn-audit-fix, the errors went away, and our dependencies are patched to later versions.

I haven't done any additional testing beyond that, so I'm not sure if there are undesirable side effects from this change.

@netlify
Copy link

netlify bot commented May 31, 2023

Deploy Preview for pensive-meitner-faaeee ready!

Name Link
🔨 Latest commit 67a4198
🔍 Latest deploy log https://app.netlify.com/sites/pensive-meitner-faaeee/deploys/6490bc7d51c58f0008246a8e
😎 Deploy Preview https://deploy-preview-840--pensive-meitner-faaeee.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

I wanted to run Docusaurus locally but kept getting Error: error:0308010C:digital envelope routines::unsupported
    at String.replace (<anonymous>). This is apparently an issue due to using vulnerable dependencies that rely on outdated TLS standards.

So I ran `yarn-audit-fix`, this error went away, and our dependencies are patched to later versions.

I haven't done any additional testing beyond that, so I'm not sure if there are undesirable side effects from this change.
@josh-padnick
Copy link
Contributor Author

FYI, the .gitignore config I'm using doesn't seem to be working.

.gitignore Outdated

# VS Code files
.vscode
docs/guides/stay-up-to-date/index.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We actually don't want to do this as that will make it much harder to change anything on this page if we ever want to do that.

Instead we need to either architect the docs-sourcer to allow this kind of functionality (ie - mixing auto-generated and manually written content on a page) or we need to update our IA such that this content gets separated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good point. Strangely, this .gitignore didn't work anyway. I think having a fully auto-generated page is the way to go.

Separately, it looks like https://docs.gruntwork.io/guides/stay-up-to-date/#gruntwork-releases is now hidden from the IA. Perhaps we should add a new page under Library called "Release Notes" that includes the releases section in https://docs.gruntwork.io/guides/stay-up-to-date/#gruntwork-releases?

package.json Outdated
"typescript": "^4.3.5",
"yargs": "^17.4.0"
"yargs": "^17.4.0",
"yarn-audit-fix": "^9.3.10"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once you've run yarn-audit-fix, it has changed your lock file. Is there any point of keeping this dependency around?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough! Removed in 1e9c420

@josh-padnick
Copy link
Contributor Author

@eak12913 This is now just a lock file change. Could you either approve and merge this, or close it out so we can remove this as a work-in-progress PR?

@oredavids oredavids merged commit bcb177e into master Jun 20, 2023
@oredavids oredavids deleted the fix-local-install branch June 20, 2023 16:14
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 this pull request may close these issues.

5 participants