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.

issue with Storybook 6.5

See original GitHub issue

hit this error in Ci after upgrading @storybook/cli to 6.5:

[percy:cli] file:///home/runner/work/.../node_modules/@percy/storybook/dist/snapshots.js:2
import { buildArgsParam } from '@storybook/router/utils.js';
         ^^^^^^^^^^^^^^
SyntaxError: Named export 'buildArgsParam' not found. The requested module '@storybook/router/utils.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from '@storybook/router/utils.js';
const { buildArgsParam } = pkg;

    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:179:5)
    at async Loader.import (node:internal/modules/esm/loader:178:24)
    at async Object.callback (file:///home/runner/work/vhs/vhs/node_modules/@percy/storybook/dist/storybook.js:31:7)
    at async generatePromise (file:///home/runner/work/vhs/vhs/node_modules/@percy/core/dist/utils.js:61:196)
    at async runCommandWithContext (file:///home/runner/work/vhs/vhs/node_modules/@percy/cli-command/dist/command.js:120:3)
    at async percy (file:///home/runner/work/vhs/vhs/node_modules/@percy/cli-command/dist/command.js:153:9)
    at async /home/runner/work/.../node_modules/@percy/cli/bin/run.cjs:13:5 (14ms)
error Command failed with exit code 1.

I didn’t find any use of buildArgsParam in @storybook/cli but I do see it in this repo - https://github.com/percy/percy-storybook/blob/master/src/snapshots.js#L2. Apologies if this issue should have been opened elsewhere.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:10
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
Robdel12commented, May 23, 2022

👋🏼 hey everyone! We’ll have a fix for this out this week — we’re going to be shipping a performance feature that eliminates this dependency

1reaction
Robdel12commented, Jun 28, 2022

Storybook has a minefield of breaking changes between patch versions so we weren’t able to get backward compatibility without keeping it: https://github.com/percy/percy-storybook/pull/592#discussion_r907704199

The performance update was shipped: https://github.com/percy/percy-storybook/releases/tag/v4.3.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · storybookjs/storybook - GitHub
Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation. - Issues ......
Read more >
Storybook 6.5 - JS.ORG
Storybook 6.5 is our biggest release yet for expanding what you can do with stories. It adds powerful interaction testing and design review ......
Read more >
@storybook/react - npm
Storybook for React: Develop React Component in isolation with Hot Reloading.. Latest version: 6.5.15, last published: 12 days ago.
Read more >
Downgrade Storybook to 6.5.12 (#926) · Issues - stork - GitLab
The storybook-addon-mock is incompatible with the Storybook version 6.5.14. We need to upgrade to the older version to be able to continue using ......
Read more >
@storybook/addon-react-native-web gets stuck building ...
The bug is not an issue with the plugin installed to the package but it does occur when I add @storybook/addon-react-native-web to the...
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