Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Description
I'm testing out the Docusaurus 3 alpha here: johnnyreilly/blog.johnnyreilly.com#601
Unfortunately plugins have been broken by the migration; likely related to ESM - is there any guidance / examples around migrating plugins to Docusaurus 3 please?
I get this error:
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/john/code/github/blog.johnnyreilly.com/blog-website/node_modules/unist-util-visit/index.js from /home/john/code/github/blog.johnnyreilly.com/blog-website/image-fetchpriority-rehype-plugin.js not supported.
Instead change the require of index.js in /home/john/code/github/blog.johnnyreilly.com/blog-website/image-fetchpriority-rehype-plugin.js to a dynamic import() which is available in all CommonJS modules.
It sounds like it's trying to be helpful with this error message, but I haven't succeeded in taking this advice and turning it into working code 😢
Self-service
- I'd be willing to address this documentation request myself. (If I knew how)