artisanofcode-archive / storybook-preset-craco

Craco preset for Storybook
MIT License
33 stars 12 forks source link

Conflict with @storybook/preset-create-react-app, less and plain css files #3

Open karlvr opened 3 years ago

karlvr commented 3 years ago

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?