Closed alexlafroscia closed 3 years ago
The out/decorators/react.js
file that is re-exported from that module does not exist in the actual NPM package. These are the contents of the published module
.
├── README.md
├── html.js
├── index.js
├── node_modules
├── out
│ ├── Panel.js
│ ├── SyntaxHighlighter.js
│ ├── decorators
│ │ ├── index.js
│ │ └── withHTML.js
│ ├── index.js
│ ├── preset
│ │ ├── addDecorators.js
│ │ └── index.js
│ ├── register.js
│ └── shared.js
├── package.json
├── preset.js
├── react.js
└── register.js
4 directories, 16 files
It seems like the html.js
at the top level references an out/decorators/html.js
file that also does not exist
Ah yes, those should be removed. There’s no need to import the decorator now since there’s a preset. Just add it in .storybook/main.js:
module.exports = {
// ...
addons: [
'@whitespace/storybook-addon-html',
// ...
],
};
But I will remove the orphaned JS files
Ah, I still had an import of the /react
file without realizing it! Thanks for the help; the new version is working for me now 💯
I'm trying to upgrade to version
4.0.0
but am seeing this issue when trying to start Storybook