react-cosmos icon indicating copy to clipboard operation
react-cosmos copied to clipboard

Deprecation warning

Open equinusocio opened this issue 3 years ago • 0 comments

What's wrong?

When I start cosmos I get the following warning:

(node:81830) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
: 	Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
: 	Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
 (Use `node --trace-deprecation ...` to show where the warning was created)

Steps to reproduce

Init cosmos with custom babelrc config

{
  "presets": [
    "@babel/env",
    "@babel/preset-typescript",
    ["@babel/preset-react", {
      "runtime": "automatic"
    }]
  ]
}

Screenshots

Screenshot 2022-01-15 at 10 36 58

User info

  • Cosmos version 5.6.6
  • Cosmos config
{
  "$schema": "http://json.schemastore.org/cosmos-config",
  "port": 6006
}

equinusocio avatar Jan 15 '22 09:01 equinusocio