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.

"Show code" shows the code in wrong mode

See original GitHub issue

Describe the bug After update from 6.4.x to 6.5.x “Show code” shows the code in “code” mode instead of “auto”. If click “reset controls” or change any value in controls then the source is shown in “auto” mode.

To Reproduce

  • open story -> Docs
  • click “Show code”

Result - “code”:

(args, { argTypes }) => ({
    props: Object.keys(argTypes),
    components: { badge: BadgeComponent },
    template: '<badge v-bind="$props">Text example</badge>',
})

Expected result - “auto”:

<template><badge>Text example</badge></template>
  • Click “reset controls”

Result - source is changed to correct mode:

<template><badge>Text example</badge></template>

Additional context@storybook/addon-a11y”: “^6.5.9”, “@storybook/addon-actions”: “^6.5.9”, “@storybook/addon-essentials”: “^6.5.9”, “@storybook/addon-links”: “^6.5.9”, “@storybook/addon-postcss”: “^2.0.0”, “@storybook/builder-webpack5”: “^6.5.9”, “@storybook/manager-webpack5”: “^6.5.9”, “@storybook/vue”: “^6.5.9”,

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

1reaction
mokone91commented, Jun 21, 2022

Same problem after upgrading. any solution?

0reactions
jevgenigavrilovcommented, Dec 12, 2022

@Hanawa02 I am also using bootstrap-vue and have the same issue. One thing I noticed is that when passing auto to docs.source.type storybook previews the code as rendered output

image
Read more comments on GitHub >

github_iconTop Results From Across the Web

TSimpleCodec.Begin_EncryptMemory - Wrong mode
When initialising the codec by run-time code, you need to set the StreamCipherId. Insert the following line just before setting the BlockCipherId. FCodec....
Read more >
Tech Talk #1 - E001 Wrong Mode Error - CASPOSS
In all cases this error appears when the mode keys "The ignition keys" have been turned during a sale or the most common...
Read more >
Fix program errors and improve code - Visual Studio (Windows)
For a cleaner view of the issues, navigate to the bottom of the build Output window, and click the Error List tab. This...
Read more >
Troubleshoot Terminal launch failures - Visual Studio Code
The exit codes displayed come from the shell and you may be able to diagnose shell issues by searching on the internet for...
Read more >
Troubleshoot connection errors during Nest × Yale Lock setup
“Can't connect to the lock”; “Something went wrong”. The app may also show you one of the following help codes: T003. T010.
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