You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
slorber
changed the title
Is there documentation for migrating plugins from Docusaurus 2 -> 3
Documentation for migrating plugins from Docusaurus 2 -> 3
Jun 21, 2023
Have you 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:
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
The text was updated successfully, but these errors were encountered: