{"id":9267,"date":"2022-10-23T20:03:58","date_gmt":"2022-10-23T18:03:58","guid":{"rendered":"https:\/\/via-internet.de\/blog\/?p=9267"},"modified":"2022-10-23T20:06:37","modified_gmt":"2022-10-23T18:06:37","slug":"storybook-troubleshooting","status":"publish","type":"post","link":"https:\/\/via-internet.de\/blog\/2022\/10\/23\/storybook-troubleshooting\/","title":{"rendered":"Storybook &#8211; Troubleshooting"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Error: Resource busy or locked<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When starting storybook with <code>npm run storybook<\/code>, you always get the error <code>EBUSY: resource busy or locked<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"419\" src=\"https:\/\/via-internet.de\/blog\/wp-content\/uploads\/2022\/10\/Storybook-Troubleshooting-Ressource-Busy.jpg\" alt=\"\" class=\"wp-image-9268\" srcset=\"https:\/\/via-internet.de\/blog\/wp-content\/uploads\/2022\/10\/Storybook-Troubleshooting-Ressource-Busy.jpg 709w, https:\/\/via-internet.de\/blog\/wp-content\/uploads\/2022\/10\/Storybook-Troubleshooting-Ressource-Busy-300x177.jpg 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Solution: modify .storybook\/main.js<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can fix this by adding the following to the file <code>.storybook\/main.js<\/code><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"typescript\" data-enlighter-theme=\"\" data-enlighter-highlight=\"3-6\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">module.exports = {\n  ...\n  managerWebpack: (config, options) => {\n    options.cache.set = () => Promise.resolve();\n    return config;\n  }\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Error: Resource busy or locked When starting storybook with npm run storybook, you always get the error EBUSY: resource busy or locked Solution: modify .storybook\/main.js You can fix this by adding the following to the file .storybook\/main.js<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9267","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/9267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/comments?post=9267"}],"version-history":[{"count":3,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/9267\/revisions"}],"predecessor-version":[{"id":9272,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/9267\/revisions\/9272"}],"wp:attachment":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/media?parent=9267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/categories?post=9267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/tags?post=9267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}