Skip to content
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

Single stories doesn't work #544

Open
6 tasks done
rubencanovaca opened this issue May 31, 2023 · 3 comments
Open
6 tasks done

Single stories doesn't work #544

rubencanovaca opened this issue May 31, 2023 · 3 comments
Labels
to triage This issue needs to be triaged

Comments

@rubencanovaca
Copy link

rubencanovaca commented May 31, 2023

Describe the bug

https://histoire.dev/examples/vue3/single-stories.html#within-an-iframe

Single stories doesn't work (without layout property or with { type: 'single' }) and just show the side menu recursively. A warning appears in the console:

[Vue Router warn]: No match found for location with path "/__sandbox"

Locally it works (serve), but not into the dist folder (build), so it's impossible to upload it to production.

Reproduction

image

System Info

System:
    OS: macOS 13.4
    CPU: (8) arm64 Apple M1 Pro
    Memory: 46.92 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.13.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.2.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 113.0.5672.126
    Safari: 16.5
  npmPackages:
    @histoire/plugin-vue: ^0.16.1 => 0.16.1 
    @vitejs/plugin-vue: ^4.0.0 => 4.1.0 
    histoire: ^0.16.1 => 0.16.1 
    vite: ^4.0.0 => 4.2.1

Used Package Manager

yarn

Validations

@rubencanovaca rubencanovaca added the to triage This issue needs to be triaged label May 31, 2023
@rubencanovaca rubencanovaca changed the title No match found for location with path "/__sandbox" Single stories doesn't work May 31, 2023
@sloba88
Copy link

sloba88 commented Feb 9, 2024

I have the same issue, clearly something regarding routing is broken. I was able to work around it by setting:

defaultStoryProps: {
    layout: {
      type: 'single',
      iframe: false,
    }
}

in histoire.config.ts

@SebiBasti
Copy link

SebiBasti commented Apr 2, 2024

I have the same issue, clearly something regarding routing is broken. I was able to work around it by setting:

defaultStoryProps: {
    layout: {
      type: 'single',
      iframe: false,
    }
}

in histoire.config.ts

Amazing, that fixed it for me!

@rubencanovaca
Copy link
Author

I have the same issue, clearly something regarding routing is broken. I was able to work around it by setting:

defaultStoryProps: {
    layout: {
      type: 'single',
      iframe: false,
    }
}

in histoire.config.ts

But I need a responsive layout (for a component that behaves in different ways on different screen sizest), and there is no way with iframe: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants