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

Replace the import statement #9135

Closed
wants to merge 1 commit into from

Conversation

BryanSJamesDev
Copy link

The change made was replacing the import statement for the logger module with the correct import statement for the createLogger function from @docusaurus/logger in the testSwizzleThemeClassic.mjs file.

I believe the correct import path for the logger module in Docusaurus is @docusaurus/logger package, and it exports a createLogger function, not a default export. Therefore, the corrected code uses the following import statement:
import { createLogger } from '@docusaurus/logger';

By importing the createLogger function instead of the default export, we can correctly use the logger variable in the code to log messages using the Docusaurus logger.

@facebook-github-bot
Copy link
Contributor

Hi @bryanspacex!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@netlify
Copy link

netlify bot commented Jul 9, 2023

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit 9025d28
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/64aaf8cbb53e550007fb1f56
😎 Deploy Preview https://deploy-preview-9135--docusaurus-2.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 configuration.

@github-actions
Copy link

github-actions bot commented Jul 9, 2023

⚡️ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO PWA Report
/ 🟠 88 🟢 97 🟢 92 🟢 100 🟠 89 Report
/docs/installation 🟠 77 🟢 100 🟢 92 🟢 100 🟠 89 Report

@Josh-Cena Josh-Cena closed this Jul 9, 2023
@Josh-Cena Josh-Cena added the closed: invalid This issue / PR is low quality, unwanted or spam and doesn't qualify as a contribution in any way. label Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: invalid This issue / PR is low quality, unwanted or spam and doesn't qualify as a contribution in any way.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants