- Issue created by @adanbouzoua
- 🇺🇸United States adanbouzoua
I am testing trying to run vartheme_bs5 and storybook.
If you have components files inside vartheme_bs5 if not copy them from modules/contrib/varbase_components/components. I found my setup with empty folders.I am also having an issue with the components and the storybook.
I am gettingError: Failed to fetch at StoryRender.renderToCanvas [as renderToScreen] (/vendors-node_modules_lullabot_storybook-drupal-addon_dist_preview_mjs-node_modules_storybook_-27753f.iframe.bundle.js:888:1045)) at /sb-preview/runtime.js:81:10850 at StoryRender.runPhase (/sb-preview/runtime.js:81:8772)) at StoryRender.render (/sb-preview/runtime.js:81:10783))
And
Access to fetch at 'http://varbase.ddev.site/_cl_server?_storyFileName=.%2Fdocroot%2Fthemes%2Fcontrib%2Fvartheme_bs5%2Fcomponents%2Fatoms%2Fheading%2Fheading.stories.json&_drupalTheme=undefined' from origin 'http://varbase.ddev.site:6006' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I did all the CORS configs as recommended, but the problem still needs to be solved. I am using DDev and follow the steps in the tutorial. Storybook 7.6.20 for server-webpack5