Get help
Blog
Status
Release notes
Contents
x
Get started
Use Freehand
Integrations
Account administration
Security
Billing and plans
Your New InVision Update hub
Classic InVision
Release notes
Powered by
DSM Storybook Integration
30 Articles
in this category
Dark
Light
Contents
DSM Storybook Integration
30 Articles
in this category
Dark
Light
Troubleshooting "ChunkLoadError" in DSM Storybook
If you run into an error “ChunkLoadError: Loading Chunk X Failed” on Storybook 6.2+, the below workaround may solve it. Storybook 6.2+ has added new optimizations to its bundling process. Because of how DSM handles uploaded and hosted assets, the...
Updated on : 10 Jan 2023
Options for integrating DSM and Storybook
Storybook is an open-source tool for developing user interface (UI) components. By integrating DSM with Storybook, you can create Live Components . Currently, there are two options for integrating Storybook with DSM: Self-hosted (via an embed...
Updated on : 10 Jan 2023
Embedding Storybook in DSM via URL
The DSM Storybook integration is available exclusively for DSM Enterprise. Integrating Storybook with DSM Live Components is as simple as pasting in your hosted Storybook URL. To embed Storybook in a live component: Sign in to the DSM web...
Updated on : 13 Jun 2023
What version of Storybook does DSM support?
Currently, there are two options for integrating Storybook with DSM: Self-hosted (via an embedded URL ) DSM-hosted (via a CLI-based integration ) When using an embedded URL, there are no limitations. Anything supported in Storybook will appea...
Updated on : 10 Jan 2023
Declarative configuration in the DSM Storybook integration
After adding a DSM configuration file to your Storybook component library project, you'll need to add DSM as a Storybook addon. This article walks through how to do so using Storybook's declarative configuration. Storybook introduced declarativ...
Updated on : 10 Jan 2023
Non-declarative configuration in the DSM Storybook integration
After adding a DSM configuration file to your Storybook component library project, you'll need to add DSM as a Storybook addon. This article walks through how to do so using Storybook's non-declarative configuration. Storybook introduced declar...
Updated on : 06 Feb 2023
Does the DSM Storybook integration support TypeScript?
Yes, The DSM Storybook integration (version 0.0.127 and newer) supports Storybook stories written in TypeScript. To learn more about integrating DSM and Storybook, check out this guide: What Are Live Components? Note: There is a known issue wh...
Updated on : 06 Mar 2023
How do I check my version of Node.js?
When troubleshooting issues with InVision's DSM Storybook integration, our support agents will sometimes need to know which version of Node.js you're using. To check your version of Node.js, open Terminal (or another CLI of your choice), and type ...
Updated on : 10 Jan 2023
How do I use Storybook addons with DSM Live Components?
The Live Components feature is currently limited to Enterprise users on a DSM Enterprise plan. Learn more about DSM Enterprise. When you publish Storybook stories to DSM as live components, most of the official Storybook addons that are co...
Updated on : 10 Jan 2023
Does the addParameters function work with the DSM Storybook integration?
The Live Components feature, made possible by an integration between Storybook and DSM, is currently limited to Enterprise users on a DSM Enterprise plan. Learn more about DSM Enterprise. Currently, the addParameters function in Storybook ...
Updated on : 10 Jan 2023
Does the CLI-based Storybook integration support Web Components?
The CLI-based DSM Storybook integration supports native Web Components using the browser default APIs. The integration does not support packages or wrappers that use their own API to build Web Components to a bundle (for example, Stencil and Po...
Updated on : 06 Feb 2023
How does DSM access Storybook?
To access Storybook, Design System Manager (DSM) generates a unique authentication token, which is displayed one time for the user once). This authentication token and the dsmHost, organization, outputDir, storyPath, proxyUrl, and proxyPort detail...
Updated on : 10 Jan 2023
How does DSM know which components to map to my design system from Storybook?
For each live component you integrate (per page, per framework), DSM generates a unique ID that's mapped to the applicable component within Storybook.
Updated on : 10 Jan 2023
Can I connect multiple Storybook stories to a single component container?
This article discusses the Live Components feature, which is currently limited to Enterprise users on a DSM Enterprise plan. Learn more about DSM Enterprise. If using Live Components in Design System Manager (DSM), you can connect multipl...
Updated on : 10 Jan 2023
Can I connect multiple component containers to a single Storybook story?
This article discusses the Live Components feature, which is currently limited to Enterprise users on a DSM Enterprise plan. Learn more about DSM Enterprise. When working with the Live Components feature in Design System Manager (DSM), it is cu...
Updated on : 10 Jan 2023
Versioning DSM Live Components
The Live Components feature is currently limited to Enterprise users on a DSM Enterprise plan. Learn more about DSM Enterprise. When viewing live components in the DSM web view, you can quickly identify a component’s version by including a ve...
Updated on : 06 Feb 2023
What happens when I run the DSM publish command, npm run dsm-storybook:publish?
When running the DSM publish command , npm run dsm-storybook:publish , the CLI builds your Storybook project and creates the production Storybook bundle. The bundle is then uploaded and hosted in the DSM cloud. From here, all live component IDs t...
Updated on : 10 Jan 2023
What happens when I run the DSM preview command, npm run dsm-storybook:preview?
When running the DSM preview command , npm run dsm-storybook:preview , a local instance of Storybook is started, using a source-code add-on to preview stories and sample component code snippets. This command lets you see the documentation stories...
Updated on : 10 Jan 2023
Why am I getting the error message "No stories with DSM component container IDs were found"?
This article references setting up Live Components in DSM. The Live Components feature is currently limited to Enterprise users on a DSM Enterprise plan. Learn more about DSM Enterprise. When creating live components and attempting to publish ...
Updated on : 10 Jan 2023
Why isn't the Properties table showing for my live component?
If you're using TypeScript to build Storybook stories that are then synced to DSM, you may encounter an issue where the Properties table won't display. If this occurs, first check the syntax of your forwardRef React components. For DSM to correc...
Updated on : 10 Jan 2023
Can I include static assets with the DSM Storybook integration?
The Live Components feature is currently limited to Enterprise users on a DSM Enterprise plan. Learn more about DSM Enterprise. When creating live components with the DSM Storybook integration, it's possible to include static assets such as fon...
Updated on : 10 Jan 2023
Does InVision store any Storybook code?
When running the DSM publish command , npm run dsm-storybook:publish , the CLI builds your Storybook project and creates the production Storybook bundle. The bundle is then uploaded and hosted in the DSM cloud. DSM Cloud assets are hosted on InVi...
Updated on : 10 Jan 2023
What is contained in a Storybook bundle?
Storybook uses webpack to build javascript bundles. Like bundles from any website that relies on webpack, Storybook bundles contain everything that's required to render the website. If you have code that is sensitive, you need to keep it on the se...
Updated on : 10 Jan 2023
What happens when we publish a Storybook bundle to DSM?
In the Storybook webpack build, all resources (javascript, CSS, images, etc.) are relative to the root of the website: / Rather than hosting the uploaded storybook in a classic webserver, the DSM Storybook integration uploads bundle files to the ...
Updated on : 10 Jan 2023
How does DSM handle unnecessary resources from a Storybook bundle?
When creating javascript bundles, Storybook includes all resources within the Storybook instance; however, DSM only displays components that are mapped by their unique IDs to pages within DSM. If you have components that should not be displayed in D...
Updated on : 10 Jan 2023
Is it possible to modify the Storybook code from DSM?
No, it's not possible to publish changes from DSM to Storybook. There are no post, pull, or write commands back to the self-hosted Storybook instance. The npm run dsm-storybook:publish command writes from Storybook to DSM.
Updated on : 10 Jan 2023
Why does InVision host a version of our Storybook instance rather than use our existing instance?
To generate dynamic code samples and auto-generated properties, DSM needs to be aware of the code in its entirety. To meet that need, we create a bundle of the self-hosted Storybook instance and upload it to DSM. Having the self-hosted Storybook in...
Updated on : 10 Jan 2023
Is Storybook covered by InVision's SOC 2 examination?
No, Storybook is not an InVision product and is independent of our DSM Storybook integration . For more information about our annual SOC 2 examination and resulting report, see this article: Does InVision complete an SOC 2 Type 2 examination?
Updated on : 10 Jan 2023
Troubleshooting DSM Storybook error "No suitable component definition found"
When trying to publish a Storybook story to DSM, you may encounter the following error: No suitable component definition found. This error can often be caused by limitations with the library react-docgen . We use this library to turn React code...
Updated on : 06 Feb 2023
Workaround for using non-declarative configuration in the DSM Storybook integration
In version 5.3, Storybook introduced declarative configuration , which is fully supported by the DSM Storybook integration. You can also use the integration with the non-declarative configuration from Storybook 5.2 and earlier. Note that you won't...
Updated on : 03 Feb 2023