Closed sgammon closed 2 years ago
You need to import addons
from prebuilt, a la:
import { addons } from '@web/storybook-prebuilt/addons.js';
import yourTheme from './theme.js';
addons.setConfig({
theme: yourTheme,
showRoots: false,
});
indeed that fixed it -- while also importing theming
via:
import { create } from '@web/storybook-prebuilt/theming.js';
thank you for the quick help on this! 😄
Hey esteemed Modern Web devs,
When following the Storybook guide for theming, it suggests creating a
manager.js
and filling it with the following content:However, when I do this using
@web/*
, it gives me this error:I have tried flying with
"type": "module"
, but this causes other problems -- I have also tried naming the filemanager.mjs
, but in that case, it seems like it doesn't take effect. What am I doing wrong, or is this a bug?