-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
refactor: move PerfLogger from core to @docusaurus/logger #10480
Conversation
⚡️ Lighthouse report for the deploy preview of this PR
|
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site configuration. |
Size Change: +271 B (0%) Total Size: 11.5 MB ℹ️ View Unchanged
|
Hi, I am trying to upgrade my website to Docusaurus V3, after update to v3.7. The following error occurs
Then I add the config, async_hooks: false. Another similar issue occurs After checking the code, I found this PR has something related to my issue. Currently I do not have a better solution but can only stay at 3.5.2. Do you have other suggestion? |
I doubt this PR is the problem, it works fine for many others It's not possible to help without a repro and your env. It could be a Node.js bug for example |
Thanks for the response.
Currently I fixed the issue by manually add a mock file src/mocks/async_hooks.js, during development.
In production, I removed the use of logger and above. |
Motivation
This is a useful tool that I'd like to use in other places of Docusaurus and it looks cleaner to expose it as
@docusaurus/logger
API rather than@docusaurus/core
Test Plan
CI
Test links
https://deploy-preview-10480--docusaurus-2.netlify.app/