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.

warning filtering (analagous to webpack's stats.warningsFilter)

See original GitHub issue

Is your feature request related to a problem? Please describe.

In our main frontend build we’re using Webpack’s stats warningsFilter to suppress innocuous warnings from ts-loader.

There doesn’t seem to be a way to do this in our storybook build, so we get pages of unwanted warnings.

The Webpack stats doc mentions:

This option does not have any effect when using the Node.js API.

I assume that’s what’s going on here?

Describe the solution you’d like An equivalent for Webpack’s stats option that I can use in Storybook builds.

Describe alternatives you’ve considered I looked into other ways to control the Storybook build output, but all I could find was build-storybook’s --quiet option, which doesn’t filter the warnings out.

Are you able to assist bring the feature to reality? Maybe, with some guidance about where to start!

Additional context Here’s what we’re doing in our app builds, that doesn’t work in Storybook:

  stats: {
    warningsFilter: /export .* was not found in/,
  },

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
mohsenshafieicommented, Dec 6, 2019

I just used this webpack plugin to sort, filter and organize webpack stats: https://www.npmjs.com/package/webpack-shower

1reaction
giniedpcommented, Oct 2, 2020

anyone still using webpack-shower or webpack-filter-warnings-plugin? I am on Storybook 6.0.22 and can not get rid of that warning. Tried both plugins.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stats - webpack
stats.warningsFilter ... Tells stats to exclude the warnings that are matching given filters. This can be done with a string , a RegExp...
Read more >
webpack-filter-warnings-plugin - npm package - Snyk
webpack -filter-warnings-plugin. v1.2.1. Allows you to hide certain warnings from webpack compilations For more information about how to use this package see ...
Read more >
webpack-cli - npm
Start using webpack-cli in your project by running `npm i webpack-cli`. ... --stats-warnings-filter-reset Clear all items provided in ...
Read more >
webpack - Fig.io
Specifies the behavior of invalid export names in "import ... from ..." --no-module-parser-javascript-import-exports-presence, Negative 'module ...
Read more >
Webpack-filter-warnings-plugin - npm.io
Currently karma-webpack does not respect the stats.warningsFilter option. Also when excluding all warnings, webpack still says Compiled with warnings. when all ...
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