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
bug: npm2yarn2pnpm not working with docusaurus@2.0.0-beta.21 #75
Comments
This isn't a bug per say, check how we're doing it on our website: You'll need to destructure the method itself. Can you try that and followup if that fixes it or not? 🙏 |
Adding to that, the difference with the other plugin comes from how we export the plugin. Whereas the npm2yarn plugin uses
Because we're not limited to a specific setup like docusaurus is we opted to just embrace the modern exports. |
@vladfrangu ah thank you for the tip! Had to be a named import. Working now! |
Glad to hear it worked! I'll be closing this issue then as it's not a bug, but followup if there's any other issues! |
Is there an existing issue for this?
Description of the bug
The meta tag
npm2yarn2pnpm
has no affect on bash code blocks. Where I'd previously usednpm2yarn
, I've installed@sapphire/docusaurus-plugin-npm2yarn2pnpm
and added:However, this has no affect, and the codeblock is printed as a normal bash syntaxhighlighted codeblock.
Steps To Reproduce
@sapphire/docusaurus-plugin-npm2yarn2pnpm
docusaurus.config.js
index.md
)Watch it get rendered as such:
Expected behavior
Expect
npm
,yarn
, andpnpm
tab component to be renderedScreenshots
Additional context
See for example, this draft PR in my docusaurus project:
1a. The very first bash codeblock on this page,
npm install next-auth
, is supposed to be rendered with the various package manager tabs. But as you can see, it is not.The text was updated successfully, but these errors were encountered: