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.

[@storybook/addon-a11y]: Critical dependency issue

See original GitHub issue

Describe the bug Enabling @storybook/addon-a11y logs this dependency error.

⚠️ Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

  • The issue seems to be present at least from 6.1.19 to 6.1.21.
  • Disabling the addon fixes the issue.
  • While the error is logged, it doesn’t seem to affect the app

Expected behavior The console should run without errors

Screenshots ScreenShot 2021-03-23 at 5 04 51 PM

System System: OS: macOS 11.1 CPU: (8) x64 Intel® Core™ i7-4770HQ CPU @ 2.20GHz Binaries: Node: 14.15.4 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 6.14.10 - /usr/local/bin/npm Browsers: Chrome: 89.0.4389.90 Firefox: 86.0.1 Safari: 14.0.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:21
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
shilmancommented, Mar 26, 2021

Try upgrading to the latest prerelease:

npx sb@next upgrade --prerelease

Does that fix it?

1reaction
panjieswcommented, Apr 6, 2021

@shilman @mts turns out it was because of issue in axe-core@4.1.3 https://github.com/dequelabs/axe-core/pull/2843

Tried to reproduce using fresh install, the issue disappeared because there is a new release of axe-core@4.1.4 that resolves this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

@storybook/addon-a11y - npm
Start using @storybook/addon-a11y in your project by running `npm i @storybook/addon-a11y`. There are 469 other projects in the npm registry ...
Read more >
@storybook/addon-a11y | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
storybook-addon-a11y | npm | Open Source Insights
storybook-addon-a11y. history ... In the dependencies. Exposure of Sensitive Information in eventsource. 9.3 CRITICAL·GHSA-6h5x-7c5m-7cr7.
Read more >
storybook-amp - NPM Package Overview - Socket - Socket.dev
Storybook addon for AMP (Accelerated Mobile Pages). Allows to display in your stories AMP Html ... Dependencies have 1 critical issue. Install scripts ......
Read more >
storybook digital envelope routines::unsupported - You.com
I found this solution https://github.com/webpack/webpack/issues/14532 ... Chromium (102.0.1245.44) npmPackages: @storybook/addon-a11y: ^6.5.9 => 6.5.9 ...
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