Comments (3)
I'm not sure is it related, but I also faced problem while passing @storybook/addon-viewport
parameters to .lokiSkip
.
Example:
storiesOf('Card', module)
.add('default', () => (
<Card />
))
.lokiSkip('iphone6', () => (
<Card />
), { viewport: { defaultViewport: 'iphone6' }})
Parameters are not recognized and both use the same viewport. But using .add
instead of .lokiSkip
works as expected and sets viewport according to parameters.
from loki.
Any update there?
from loki.
I have the same problem. Are there any updates?
Setup
Node v12.16.2
Loki v0.22.1
Storybook v5.3.13
Storybook addons: docs
, viewport
Example
storiesOf('Card', module)
.addParameters({ component: Card })
.add('default', () => (
<Card />
))
.lokiSkip('default2', () => (
<Card />
))
What do I expect?
If I start storybook there should be two stories. If I go to the Docs tab in storybook there should be the documentation of all two stories, including the props list of the component on top and the code of each story visible next to each rendered story.
Cod button example in right bottom corner:
What is really happening?
I can not see the code from the default2
story, but I can from the default
story.
Code button:
Suggestions
This looks like lokiSkip
prevents some functionality of the add-ons.
It should be possible to pass the whole add
function through the lokiSkip
to prevent
from loki.
Related Issues (20)
- Failed to render with error "(0 , import_upath.normalize) is not a function"
- CI launch, problems with static files load HOT 2
- Blank stories result in "Timeout after 10000ms" HOT 2
- chrome.docker ECONNREFUSED HOT 1
- Conflict peer-dependencies of latest Storybook 7 @7.0.21 when install latest [email protected] HOT 12
- Fail to fetch stories in chrome.app: storybook v7, loki 0.32 HOT 1
- Problem with Continuous Integration - Error: ENOENT: no such file or directory, open '/root/.aws/config'
- How can I run loki test against a specific file? HOT 5
- Failed to load locales or server is down HOT 1
- How to view test screenshots results in github actions HOT 2
- Storybook fonts still failing to load from within Docker as of version 0.32 HOT 3
- Failed to load stories in chrome.docker, loki version 0.32.0 HOT 5
- chrome.docker: Fetching stories stuck
- Unable to resolve "hoist-non-react-statics" on RN
- Docker container doesn't stop
- Loki is not supporting node 14 but lambda only runs on node 14. HOT 4
- @loki/target-chrome-app has an undeclared dependency on @loki/core [0.33.0]
- A new command line argument so you can provide the path to the loki config file
- Update wait-on to the latest version to fix CVE-2023-45857 vulnerability
- Command failed with exit code 125 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loki.