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.

hide chunks/warnings in storybook

See original GitHub issue

Has anyone had any luck disabling the chunk display when running storybook with a warning, e.g.:

...
 [2572] ./~/react-modal/lib/index.js 49 bytes {1} [built]
 [2573] ./~/react-simple-di/dist/index.js 2.96 kB {1} [built]
 [2574] ./~/shallowequal/modules/index.js 1.18 kB {1} [built]
 [2611] ./~/uuid/rng-browser.js 735 bytes {1} [built]
 [2612] ./~/uuid/uuid.js 5.29 kB {1} [built]

WARNING in ./packages/ak-editor-schema/~/ajv/dist/ajv.bundle.js
Critical dependencies:
1:476-483 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
 @ ./packages/ak-editor-schema/~/ajv/dist/ajv.bundle.js 1:476-483

I tried

  storybookBaseConfig.stats = {
      warnings: false,
      chunks: false,
    };
  storybookBaseConfig.devServer = {
    stats: {
      warnings: false,
      chunks: false,
    },
  };
  storybookBaseConfig.webpackMiddleware = {
    stats: {
      warnings: false,
      chunks: false,
    },
  };

to no avail

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
arunodacommented, Jan 12, 2017

Yep. This is needed. We may wanna use this: https://github.com/geowarin/friendly-errors-webpack-plugin

I’m open for a PR for this.

0reactions
danielduancommented, Sep 14, 2017

I think the output has been silenced for the default webpack config. If you’re using a custom config, you might still run into this. Closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

hide chunks/warnings in storybook · Issue #560 - GitHub
I want to see warnings and errors; I never want to see chunk output. All reactions.
Read more >
Features and behavior - Storybook
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >
Controls - Storybook - JS.ORG
Choosing the control type · Custom control type matchers · Fully custom args · Configuration · Show full documentation for each property ·...
Read more >
CLI options - Storybook
--no-manager-cache, Disables Storybook's manager caching mechanism. See note below start-storybook --no-manager-cache ; --disable-telemetry, Disables Storybook's ...
Read more >
Interactions - Storybook - JS.ORG
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
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