It appears that storybook-preset-craco is incompatible with @storybook/preset-create-react-app (based on a quick look at the source's incompatiblePresets), but I didn't see the warning on my console. When I had both installed, I was able to load my .less files (as per my expectations), but loading .css files started to fail (they appeared to have become JavaScript files). Removing the @storybook/preset-create-react-app preset fixed it.
If this is the case, perhaps the README could make it explicit that you should remove the incompatible presets?
It appears that storybook-preset-craco is incompatible with
@storybook/preset-create-react-app
(based on a quick look at the source'sincompatiblePresets
), but I didn't see the warning on my console. When I had both installed, I was able to load my.less
files (as per my expectations), but loading.css
files started to fail (they appeared to have become JavaScript files). Removing the@storybook/preset-create-react-app
preset fixed it.If this is the case, perhaps the README could make it explicit that you should remove the incompatible presets?