question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bad error when trying to swizzle a theme component

See original GitHub issue

🐛 Bug Report

Run yarn workspace docusaurus-2-website swizzle @docusaurus/theme-classic Layout on this repo

image

The error is expected as it’s an internal theme component, not necessarily recommended for swizzling (at your own risks).

But this message seems unexpected to me.

Component “Layout” doesn’t exists. “Layout” is swizzled instead of “Layout”.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
slorbercommented, Nov 6, 2020

@compojoom yes this is confusing, we’ll fix this.

Afaik older npm/yarn might need -- --danger, the -- permit to pass extra args.

0reactions
slorbercommented, Apr 7, 2021

I’m not sure what you mean @covalentbond . “If the error still exists” does not look correct to me and I prefer the current wording. About -- --danger, the double -- is needed for npm only, not yarn, but would be happy, to adapt to the user’s package manager automatically

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docusaurus V2 not automatically use swizzled component
So I run npm run swizzle @docusaurus/theme-classic layout -- --danger which copy layout js and css file to the directory.
Read more >
qnz - River Thames Conditions - Environment Agency - GOV.UK
Seeking arrangement bad experience, Persiska macka, Samsung intensity 3 battery ... Russ coson die trying, Yrrebkcalb, Penumbra overture main theme piano.
Read more >
Unity 2022.2.0a18
HDRP: Fixed editor issue with the LiftGammaGain and ShadowsMidtonesHighlights volume components. HDRP: Fixed error on lens flare enabled causing ...
Read more >
5 Pc Handmade Custom Mushroom Glass Swizzle Cocktail ...
Find many great new & used options and get the best deals for 5 Pc Handmade Custom Mushroom Glass Swizzle Cocktail Martini Stir...
Read more >
Argument types - Minecraft Wiki - Fandom
This page contains a list of all command argument types. Must be a boolean (either true or false). Must be a Double-precision floating-point...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found