Skip to content

[Bug]: WARN You (or an addon) are using the 'config' preset field. This has been replaced by 'previewAnnotations' and will be removed in 8.0 #25502

Answered by bazy1983
The2Alert asked this question in Help
Discussion options

You must be logged in to vote

i think the deprecation message can be improved a little bit. but here's what i found
in @storybook/core-server/dist/presets/common-preset.js file, there is a function called previewAnnotations that reads your main.js(ts) and try to find a property config either in your configuration json or in any of your addons.
if that function detects config property, it will fire the deprecation warning message.
in my case, the deprecation was fired because of @storybook/addon-knobs.
the easy way to figure out what triggers the deprecation message in your setup is to go to the common-preset.js in node_modules. search for the deprecation message. add a console.log(config) then run storybook. it will l…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vanessayuenn
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
5 participants
Converted from issue

This discussion was converted from issue #23327 on January 08, 2024 10:13.